Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grammyjs/types

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/types - npm Package Compare versions

Comparing version 2.10.3 to 2.11.0

2

manage.d.ts

@@ -166,2 +166,4 @@ import { Location, Message, PhotoSize } from "./message";

slow_mode_delay?: number;
/** True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat. */
has_aggressive_anti_spam_enabled?: true;
/** For supergroups, name of group sticker set. Returned only in getChat. */

@@ -168,0 +170,0 @@ sticker_set_name?: string;

@@ -111,2 +111,4 @@ import { User } from "./manage";

keyboard: KeyboardButton[][];
/** Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon. */
is_persistent?: boolean;
/** Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard. */

@@ -113,0 +115,0 @@ resize_keyboard?: boolean;

@@ -62,2 +62,4 @@ import { InlineKeyboardMarkup } from "./markup";

media_group_id?: string;
/** True, if the message media is covered by a spoiler animation */
has_media_spoiler?: true;
}

@@ -117,2 +119,5 @@

& MsgWith<"connected_website">;
export type WriteAccessAllowedMessage =
& ServiceMessage
& MsgWith<"write_access_allowed">;
export type PassportDataMessage = ServiceMessage & MsgWith<"passport_data">;

@@ -125,2 +130,5 @@ export type ProximityAlertTriggeredMessage =

& MsgWith<"forum_topic_created">;
export type ForumTopicEditedMessage =
& ServiceMessage
& MsgWith<"forum_topic_edited">;
export type ForumTopicClosedMessage =

@@ -132,2 +140,8 @@ & ServiceMessage

& MsgWith<"forum_topic_reopened">;
export type GeneralForumTopicHiddenMessage =
& ServiceMessage
& MsgWith<"general_forum_topic_hidden">;
export type GeneralForumTopicUnhiddenMessage =
& ServiceMessage
& MsgWith<"general_forum_topic_unhidden">;
export type VideoChatScheduledMessage =

@@ -213,2 +227,4 @@ & ServiceMessage

connected_website?: string;
/** Service message: the user allowed the bot added to the attachment menu to write messages */
write_access_allowed?: WriteAccessAllowed;
/** Telegram Passport data */

@@ -220,2 +236,4 @@ passport_data?: PassportData;

forum_topic_created?: ForumTopicCreated;
/** Service message: forum topic edited */
forum_topic_edited?: ForumTopicEdited;
/** Service message: forum topic closed */

@@ -225,2 +243,6 @@ forum_topic_closed?: ForumTopicClosed;

forum_topic_reopened?: ForumTopicReopened;
/** Service message: the 'General' forum topic hidden */
general_forum_topic_hidden?: GeneralForumTopicHidden;
/** Service message: the 'General' forum topic unhidden */
general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
/** Service message: video chat scheduled */

@@ -652,2 +674,10 @@ video_chat_scheduled?: VideoChatScheduled;

/** This object represents a service message about an edited forum topic. */
export interface ForumTopicEdited {
/** New name of the topic, if it was edited */
name?: string;
/** New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed */
icon_custom_emoji_id?: string;
}
/** This object represents a service message about a forum topic closed in the chat. Currently holds no information. */

@@ -659,2 +689,11 @@ export interface ForumTopicClosed {}

/** This object represents a service message about General forum topic hidden in the chat. Currently holds no information. */
export interface GeneralForumTopicHidden {}
/** This object represents a service message about General forum topic unhidden in the chat. Currently holds no information. */
export interface GeneralForumTopicUnhidden {}
/** This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information. */
export interface WriteAccessAllowed {}
/** This object represents a service message about a video chat scheduled in the chat. */

@@ -661,0 +700,0 @@ export interface VideoChatScheduled {

2

package.json
{
"name": "@grammyjs/types",
"version": "2.10.3",
"version": "2.11.0",
"description": "Telegram Bot API type declarations for grammY",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,3 +9,3 @@ import { CallbackQuery } from "./markup";

export namespace Update {
/** Internal type holding properties that updates in channels share. */
/** Internal type holding properties that message updates in channels share. */
export interface Channel {

@@ -16,3 +16,3 @@ chat: Chat.ChannelChat;

}
/** Internal type holding properties that updates outside of channels share. */
/** Internal type holding properties that message updates outside of channels share. */
export interface NonChannel {

@@ -46,9 +46,9 @@ chat: Exclude<Chat, Chat.ChannelChat>;

/** New incoming message of any kind - text, photo, sticker, etc. */
message?: Message;
message?: Message & Update.New & Update.NonChannel;
/** New version of a message that is known to the bot and was edited */
edited_message?: Message;
edited_message?: Message & Update.Edited & Update.NonChannel;
/** New incoming channel post of any kind - text, photo, sticker, etc. */
channel_post?: Message;
channel_post?: Message & Update.New & Update.Channel;
/** New version of a channel post that is known to the bot and was edited */
edited_channel_post?: Message;
edited_channel_post?: Message & Update.Edited & Update.Channel;
/** New incoming inline query */

@@ -55,0 +55,0 @@ inline_query?: InlineQuery;

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc