@grammyjs/types 3.4.5 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/inline.d.ts CHANGED
@@ -192,9 +192,7 @@ export interface InlineQueryResultVideo {
192
192
  /** Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video). */
193
193
  input_message_content?: InputMessageContent;
194
194
  }
195
- /** Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
196
-
197
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
195
+ /** Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. */
198
196
  export interface InlineQueryResultAudio {
199
197
  /** Type of the result, must be audio */
200
198
  type: "audio";
@@ -219,9 +217,7 @@ export interface InlineQueryResultAudio {
219
217
  /** Content of the message to be sent instead of the audio */
220
218
  input_message_content?: InputMessageContent;
221
219
  }
222
- /** Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
223
-
224
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
220
+ /** Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message. */
225
221
  export interface InlineQueryResultVoice {
226
222
  /** Type of the result, must be voice */
227
223
  type: "voice";
@@ -244,9 +240,7 @@ export interface InlineQueryResultVoice {
244
240
  /** Content of the message to be sent instead of the voice recording */
245
241
  input_message_content?: InputMessageContent;
246
242
  }
247
- /** Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
248
-
249
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
243
+ /** Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method. */
250
244
  export interface InlineQueryResultDocument {
251
245
  /** Type of the result, must be document */
252
246
  type: "document";
@@ -277,9 +271,7 @@ export interface InlineQueryResultDocument {
277
271
  /** Thumbnail height */
278
272
  thumbnail_height?: number;
279
273
  }
280
- /** Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
281
-
282
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
274
+ /** Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location. */
283
275
  export interface InlineQueryResultLocation {
284
276
  /** Type of the result, must be location */
285
277
  type: "location";
@@ -310,9 +302,7 @@ export interface InlineQueryResultLocation {
310
302
  /** Thumbnail height */
311
303
  thumbnail_height?: number;
312
304
  }
313
- /** Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.
314
-
315
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
305
+ /** Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue. */
316
306
  export interface InlineQueryResultVenue {
317
307
  /** Type of the result, must be venue */
318
308
  type: "venue";
@@ -345,9 +335,7 @@ export interface InlineQueryResultVenue {
345
335
  /** Thumbnail height */
346
336
  thumbnail_height?: number;
347
337
  }
348
- /** Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
349
-
350
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
338
+ /** Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact. */
351
339
  export interface InlineQueryResultContact {
352
340
  /** Type of the result, must be contact */
353
341
  type: "contact";
@@ -372,9 +360,7 @@ export interface InlineQueryResultContact {
372
360
  /** Thumbnail height */
373
361
  thumbnail_height?: number;
374
362
  }
375
- /** Represents a Game.
376
-
377
- Note: This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them. */
363
+ /** Represents a Game. */
378
364
  export interface InlineQueryResultGame {
379
365
  /** Type of the result, must be game */
380
366
  type: "game";
@@ -450,9 +436,7 @@ export interface InlineQueryResultCachedMpeg4Gif {
450
436
  /** Content of the message to be sent instead of the video animation */
451
437
  input_message_content?: InputMessageContent;
452
438
  }
453
- /** Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.
454
-
455
- Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them. */
439
+ /** Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker. */
456
440
  export interface InlineQueryResultCachedSticker {
457
441
  /** Type of the result, must be sticker */
458
442
  type: "sticker";
@@ -465,9 +449,7 @@ export interface InlineQueryResultCachedSticker {
465
449
  /** Content of the message to be sent instead of the sticker */
466
450
  input_message_content?: InputMessageContent;
467
451
  }
468
- /** Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.
469
-
470
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
452
+ /** Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. */
471
453
  export interface InlineQueryResultCachedDocument {
472
454
  /** Type of the result, must be document */
473
455
  type: "document";
@@ -513,9 +495,7 @@ export interface InlineQueryResultCachedVideo {
513
495
  /** Content of the message to be sent instead of the video */
514
496
  input_message_content?: InputMessageContent;
515
497
  }
516
- /** Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
517
-
518
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
498
+ /** Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message. */
519
499
  export interface InlineQueryResultCachedVoice {
520
500
  /** Type of the result, must be voice */
521
501
  type: "voice";
@@ -536,9 +516,7 @@ export interface InlineQueryResultCachedVoice {
536
516
  /** Content of the message to be sent instead of the voice message */
537
517
  input_message_content?: InputMessageContent;
538
518
  }
539
- /** Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
540
-
541
- Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */
519
+ /** Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. */
542
520
  export interface InlineQueryResultCachedAudio {
543
521
  /** Type of the result, must be audio */
544
522
  type: "audio";
package/manage.d.ts CHANGED
@@ -157,7 +157,7 @@ export declare namespace Chat {
157
157
  join_to_send_messages?: true;
158
158
  /** True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat. */
159
159
  join_by_request?: true;
160
- /** For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat. */
160
+ /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat. */
161
161
  slow_mode_delay?: number;
162
162
  /** True, if new chat members will have access to old messages; available only to chat administrators. Returned only in getChat. */
163
163
  has_visible_history?: boolean;
@@ -167,6 +167,10 @@ export declare namespace Chat {
167
167
  sticker_set_name?: string;
168
168
  /** For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
169
169
  location?: ChatLocation;
170
+ /** For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat. */
171
+ unrestrict_boost_count?: number;
172
+ /** For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat. */
173
+ custom_emoji_sticker_set_name?: string;
170
174
  }
171
175
  /** Internal type representing channel chats returned from `getChat`. */
172
176
  interface ChannelGetChat extends ChannelChat, GetChat, NonGroupGetChat, NonPrivateGetChat, NonMultiUserGetChat, LargeGetChat {
@@ -223,7 +227,7 @@ export interface ChatInviteLink {
223
227
  export interface ChatAdministratorRights {
224
228
  /** True, if the user's presence in the chat is hidden */
225
229
  is_anonymous: boolean;
226
- /** True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
230
+ /** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. */
227
231
  can_manage_chat: boolean;
228
232
  /** True, if the administrator can delete messages of other users */
229
233
  can_delete_messages: boolean;
@@ -243,11 +247,11 @@ export interface ChatAdministratorRights {
243
247
  can_edit_messages?: boolean;
244
248
  /** True, if the user is allowed to pin messages; groups and supergroups only */
245
249
  can_pin_messages?: boolean;
246
- /** True, if the administrator can post stories in the channel; channels only */
250
+ /** True, if the administrator can post stories to the chat */
247
251
  can_post_stories?: boolean;
248
- /** True, if the administrator can edit stories posted by other users; channels only */
252
+ /** True, if the administrator can edit stories posted by other users */
249
253
  can_edit_stories?: boolean;
250
- /** True, if the administrator can delete stories posted by other users; channels only */
254
+ /** True, if the administrator can delete stories posted by other users */
251
255
  can_delete_stories?: boolean;
252
256
  /** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */
253
257
  can_manage_topics?: boolean;
@@ -298,7 +302,7 @@ export interface ChatMemberAdministrator {
298
302
  can_be_edited: boolean;
299
303
  /** True, if the user's presence in the chat is hidden */
300
304
  is_anonymous: boolean;
301
- /** True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
305
+ /** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. */
302
306
  can_manage_chat: boolean;
303
307
  /** True, if the administrator can delete messages of other users */
304
308
  can_delete_messages: boolean;
@@ -318,11 +322,11 @@ export interface ChatMemberAdministrator {
318
322
  can_edit_messages?: boolean;
319
323
  /** True, if the user is allowed to pin messages; groups and supergroups only */
320
324
  can_pin_messages?: boolean;
321
- /** True, if the administrator can post stories in the channel; channels only */
325
+ /** True, if the administrator can post stories to the chat */
322
326
  can_post_stories?: boolean;
323
- /** True, if the administrator can edit stories posted by other users; channels only */
327
+ /** True, if the administrator can edit stories posted by other users */
324
328
  can_edit_stories?: boolean;
325
- /** True, if the administrator can delete stories posted by other users; channels only */
329
+ /** True, if the administrator can delete stories posted by other users */
326
330
  can_delete_stories?: boolean;
327
331
  /** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */
328
332
  can_manage_topics?: boolean;
@@ -508,7 +512,7 @@ export interface ChatBoost {
508
512
  export interface ChatBoostUpdated {
509
513
  /** Chat which was boosted */
510
514
  chat: Chat;
511
- /** Infomation about the chat boost */
515
+ /** Information about the chat boost */
512
516
  boost: ChatBoost;
513
517
  }
514
518
  /** This object represents a boost removed from a chat. */
package/markup.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare namespace InlineKeyboardButton {
11
11
  text: string;
12
12
  }
13
13
  interface UrlButton extends AbstractInlineKeyboardButton {
14
- /** HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings. */
14
+ /** HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings. */
15
15
  url: string;
16
16
  }
17
17
  interface CallbackButton extends AbstractInlineKeyboardButton {
@@ -116,7 +116,7 @@ export interface ReplyKeyboardMarkup {
116
116
  one_time_keyboard?: boolean;
117
117
  /** The placeholder to be shown in the input field when the keyboard is active; 1-64 characters */
118
118
  input_field_placeholder?: string;
119
- /** Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
119
+ /** Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
120
120
 
121
121
  Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard. */
122
122
  selective?: boolean;
@@ -162,7 +162,7 @@ export interface KeyboardButtonPollType {
162
162
  export interface ReplyKeyboardRemove {
163
163
  /** Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup) */
164
164
  remove_keyboard: true;
165
- /** Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
165
+ /** Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
166
166
 
167
167
  Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet. */
168
168
  selective?: boolean;
@@ -181,7 +181,7 @@ export interface ForceReply {
181
181
  force_reply: true;
182
182
  /** The placeholder to be shown in the input field when the reply is active; 1-64 characters */
183
183
  input_field_placeholder?: string;
184
- /** Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. */
184
+ /** Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message. */
185
185
  selective?: boolean;
186
186
  }
187
187
  /** Describes a Web App. */
package/message.d.ts CHANGED
@@ -31,6 +31,8 @@ export declare namespace Message {
31
31
  external_reply?: ExternalReplyInfo;
32
32
  /** For replies that quote part of the original message, the quoted part of the message */
33
33
  quote?: TextQuote;
34
+ /** For replies to a story, the original message */
35
+ reply_to_story?: Story;
34
36
  /** Bot through which the message was sent */
35
37
  via_bot?: User;
36
38
  /** Date the message was last edited in Unix time */
@@ -198,6 +200,10 @@ export interface Message extends Message.MediaMessage {
198
200
  general_forum_topic_hidden?: GeneralForumTopicHidden;
199
201
  /** Service message: the 'General' forum topic unhidden */
200
202
  general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
203
+ /** The message is a service message about a user boosting the chat */
204
+ boost_added: ChatBoostAdded;
205
+ /** If the sender of the message boosted the chat, the number of boosts added by the user */
206
+ sender_boost_count: number;
201
207
  /** Service message: a scheduled giveaway was created */
202
208
  giveaway_created?: GiveawayCreated;
203
209
  /** The message is a scheduled giveaway message */
@@ -250,7 +256,7 @@ Message entities can be nested, providing following restrictions are met:
250
256
  - blockquote entities can't be nested.
251
257
  - All other entities can't contain each other.
252
258
 
253
- Links `tg://user?id=<user_id>` can be used to mention a user by their ID without using a username. Please note:
259
+ Links `tg://user?id=<user_id>` can be used to mention a user by their identifier without using a username. Please note:
254
260
 
255
261
  - These links will work only if they are used inside an inline link or in an inline keyboard button. For example, they will not work, when used in a message text.
256
262
  - Unless the user is a member of the chat where they were mentioned, these mentions are only guaranteed to work if the user has contacted the bot in private in the past or has sent a callback query to the bot via an inline button and doesn't have Forwarded Messages privacy enabled for the bot.
@@ -279,7 +285,9 @@ pre-formatted fixed-width code block written in the Python programming language
279
285
  `​`​`
280
286
  >Block quotation started
281
287
  >Block quotation continued
282
- >The last line of the block quotation
288
+ >The last line of the block quotation**
289
+ >The second block quotation started right after the previous\r
290
+ >The third block quotation started right after the previous
283
291
  ```
284
292
  Please note:
285
293
 
@@ -723,6 +731,10 @@ export interface Venue {
723
731
  }
724
732
  /** This object represents a message about a forwarded story in the chat. Currently holds no information. */
725
733
  export interface Story {
734
+ /** Chat that posted the story */
735
+ chat: Chat;
736
+ /** Unique identifier for the story in the chat */
737
+ id: number;
726
738
  }
727
739
  /** This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. */
728
740
  export interface ProximityAlertTriggered {
@@ -766,6 +778,11 @@ export interface GeneralForumTopicHidden {
766
778
  /** This object represents a service message about General forum topic unhidden in the chat. Currently holds no information. */
767
779
  export interface GeneralForumTopicUnhidden {
768
780
  }
781
+ /** This object represents a service message about a user boosting a chat. */
782
+ export interface ChatBoostAdded {
783
+ /** Number of boosts added by the user */
784
+ boost_count: number;
785
+ }
769
786
  /** This object contains information about the user whose identifier was shared with the bot using a KeyboardButtonRequestUsers button. */
770
787
  export interface UsersShared {
771
788
  /** Identifier of the request */
@@ -833,7 +850,7 @@ export interface Giveaway {
833
850
  export interface GiveawayWinners {
834
851
  /** The chat that created the giveaway */
835
852
  chat: Chat;
836
- /** Identifier of the messsage with the giveaway in the chat */
853
+ /** Identifier of the message with the giveaway in the chat */
837
854
  giveaway_message_id: number;
838
855
  /** Point in time (Unix timestamp) when winners of the giveaway were selected */
839
856
  winners_selection_date: number;
@@ -869,9 +886,9 @@ export interface LinkPreviewOptions {
869
886
  is_disabled?: boolean;
870
887
  /** URL to use for the link preview. If empty, then the first URL found in the message text will be used */
871
888
  url?: string;
872
- /** True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview */
889
+ /** True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview */
873
890
  prefer_small_media?: boolean;
874
- /** True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview */
891
+ /** True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview */
875
892
  prefer_large_media?: boolean;
876
893
  /** True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text */
877
894
  show_above_text?: boolean;
package/methods.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { InlineQueryResult, InlineQueryResultsButton } from "./inline.js";
2
2
  import type { BotCommand, ChatAdministratorRights, ChatFromGetChat, ChatInviteLink, ChatMember, ChatMemberAdministrator, ChatMemberOwner, ChatPermissions, ForumTopic, UserChatBoosts, UserFromGetMe, UserProfilePhotos, WebhookInfo } from "./manage.js";
3
3
  import type { ForceReply, InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove } from "./markup.js";
4
- import type { GameHighScore, LinkPreviewOptions, MaskPosition, Message, MessageEntity, MessageId, ParseMode, Poll, ReactionType, ReplyParameters, SentWebAppMessage, Sticker, StickerSet } from "./message.js";
4
+ import type { File, GameHighScore, LinkPreviewOptions, MaskPosition, Message, MessageEntity, MessageId, ParseMode, Poll, ReactionType, ReplyParameters, SentWebAppMessage, Sticker, StickerSet } from "./message.js";
5
5
  import type { PassportElementError } from "./passport.js";
6
6
  import type { LabeledPrice, ShippingOption } from "./payment.js";
7
7
  import type { BotCommandScope, BotDescription, BotName, BotShortDescription, MenuButton } from "./settings.js";
@@ -667,7 +667,7 @@ export type ApiMethods<F> = {
667
667
  user_id: number;
668
668
  /** Pass True if the administrator's presence in the chat is hidden */
669
669
  is_anonymous?: boolean;
670
- /** Pass True if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
670
+ /** Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. */
671
671
  can_manage_chat?: boolean;
672
672
  /** Pass True if the administrator can delete messages of other users */
673
673
  can_delete_messages?: boolean;
@@ -687,11 +687,11 @@ export type ApiMethods<F> = {
687
687
  can_edit_messages?: boolean;
688
688
  /** Pass True if the administrator can pin messages, supergroups only */
689
689
  can_pin_messages?: boolean;
690
- /** Pass True if the administrator can post stories in the channel; channels only */
690
+ /** Pass True if the administrator can post stories to the chat */
691
691
  can_post_stories?: boolean;
692
- /** Pass True if the administrator can edit stories posted by other users; channels only */
692
+ /** Pass True if the administrator can edit stories posted by other users */
693
693
  can_edit_stories?: boolean;
694
- /** Pass True if the administrator can delete stories posted by other users; channels only */
694
+ /** Pass True if the administrator can delete stories posted by other users */
695
695
  can_delete_stories?: boolean;
696
696
  /** Pass True if the user is allowed to create, rename, close, and reopen forum topics, supergroups only */
697
697
  can_manage_topics?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.4.5",
3
+ "version": "3.5.0",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {
package/update.d.ts CHANGED
@@ -23,19 +23,19 @@ export declare namespace Update {
23
23
  /** This object represents an incoming update.
24
24
  At most one of the optional parameters can be present in any given update. */
25
25
  export interface Update {
26
- /** The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially. */
26
+ /** The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially. */
27
27
  update_id: number;
28
28
  /** New incoming message of any kind - text, photo, sticker, etc. */
29
29
  message?: Message & Update.NonChannel;
30
- /** New version of a message that is known to the bot and was edited */
30
+ /** New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot. */
31
31
  edited_message?: Message & Update.Edited & Update.NonChannel;
32
32
  /** New incoming channel post of any kind - text, photo, sticker, etc. */
33
33
  channel_post?: Message & Update.Channel;
34
- /** New version of a channel post that is known to the bot and was edited */
34
+ /** New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot. */
35
35
  edited_channel_post?: Message & Update.Edited & Update.Channel;
36
36
  /** A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots. */
37
37
  message_reaction?: MessageReactionUpdated;
38
- /** Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates. */
38
+ /** Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes. */
39
39
  message_reaction_count?: MessageReactionCountUpdated;
40
40
  /** New incoming inline query */
41
41
  inline_query?: InlineQuery;
@@ -47,7 +47,7 @@ export interface Update {
47
47
  shipping_query?: ShippingQuery;
48
48
  /** New incoming pre-checkout query. Contains full information about checkout */
49
49
  pre_checkout_query?: PreCheckoutQuery;
50
- /** New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */
50
+ /** New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot */
51
51
  poll?: Poll;
52
52
  /** A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself. */
53
53
  poll_answer?: PollAnswer;