@grammyjs/types 3.2.1 → 3.2.2

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.
Files changed (2) hide show
  1. package/inline.d.ts +17 -6
  2. package/package.json +1 -1
package/inline.d.ts CHANGED
@@ -72,7 +72,7 @@ export interface InlineQueryResultPhoto {
72
72
  type: "photo";
73
73
  /** Unique identifier for this result, 1-64 bytes */
74
74
  id: string;
75
- /** A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB */
75
+ /** A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB */
76
76
  photo_url: string;
77
77
  /** URL of the thumbnail for the photo */
78
78
  thumbnail_url: string;
@@ -119,6 +119,8 @@ export interface InlineQueryResultGif {
119
119
  caption?: string;
120
120
  /** Mode for parsing entities in the caption. See formatting options for more details. */
121
121
  parse_mode?: ParseMode;
122
+ /** List of special entities that appear in the caption, which can be specified instead of parse_mode */
123
+ caption_entities?: MessageEntity[];
122
124
  /** Inline keyboard attached to the message */
123
125
  reply_markup?: InlineKeyboardMarkup;
124
126
  /** Content of the message to be sent instead of the GIF animation */
@@ -148,6 +150,8 @@ export interface InlineQueryResultMpeg4Gif {
148
150
  caption?: string;
149
151
  /** Mode for parsing entities in the caption. See formatting options for more details. */
150
152
  parse_mode?: ParseMode;
153
+ /** List of special entities that appear in the caption, which can be specified instead of parse_mode */
154
+ caption_entities?: MessageEntity[];
151
155
  /** Inline keyboard attached to the message */
152
156
  reply_markup?: InlineKeyboardMarkup;
153
157
  /** Content of the message to be sent instead of the video animation */
@@ -155,7 +159,7 @@ export interface InlineQueryResultMpeg4Gif {
155
159
  }
156
160
  /** Represents a link to a page containing an embedded video player or a video file. By default, this video 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 video.
157
161
 
158
- If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content. */
162
+ > If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content. */
159
163
  export interface InlineQueryResultVideo {
160
164
  /** Type of the result, must be video */
161
165
  type: "video";
@@ -231,6 +235,8 @@ export interface InlineQueryResultVoice {
231
235
  caption?: string;
232
236
  /** Mode for parsing entities in the voice message caption. See formatting options for more details. */
233
237
  parse_mode?: ParseMode;
238
+ /** List of special entities that appear in the caption, which can be specified instead of parse_mode */
239
+ caption_entities?: MessageEntity[];
234
240
  /** Recording duration in seconds */
235
241
  voice_duration?: number;
236
242
  /** Inline keyboard attached to the message */
@@ -289,9 +295,9 @@ export interface InlineQueryResultLocation {
289
295
  horizontal_accuracy?: number;
290
296
  /** Period in seconds for which the location can be updated, should be between 60 and 86400. */
291
297
  live_period?: number;
292
- /** The direction in which user is moving, in degrees; 1-360. For active live locations only. */
298
+ /** For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. */
293
299
  heading?: number;
294
- /** The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. */
300
+ /** For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. */
295
301
  proximity_alert_radius?: number;
296
302
  /** Inline keyboard attached to the message */
297
303
  reply_markup?: InlineKeyboardMarkup;
@@ -416,6 +422,8 @@ export interface InlineQueryResultCachedGif {
416
422
  caption?: string;
417
423
  /** Mode for parsing entities in the caption. See formatting options for more details. */
418
424
  parse_mode?: ParseMode;
425
+ /** List of special entities that appear in the caption, which can be specified instead of parse_mode */
426
+ caption_entities?: MessageEntity[];
419
427
  /** Inline keyboard attached to the message */
420
428
  reply_markup?: InlineKeyboardMarkup;
421
429
  /** Content of the message to be sent instead of the GIF animation */
@@ -435,6 +443,8 @@ export interface InlineQueryResultCachedMpeg4Gif {
435
443
  caption?: string;
436
444
  /** Mode for parsing entities in the caption. See formatting options for more details. */
437
445
  parse_mode?: ParseMode;
446
+ /** List of special entities that appear in the caption, which can be specified instead of parse_mode */
447
+ caption_entities?: MessageEntity[];
438
448
  /** Inline keyboard attached to the message */
439
449
  reply_markup?: InlineKeyboardMarkup;
440
450
  /** Content of the message to be sent instead of the video animation */
@@ -442,8 +452,7 @@ export interface InlineQueryResultCachedMpeg4Gif {
442
452
  }
443
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.
444
454
 
445
- 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.
446
- */
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. */
447
456
  export interface InlineQueryResultCachedSticker {
448
457
  /** Type of the result, must be sticker */
449
458
  type: "sticker";
@@ -520,6 +529,8 @@ export interface InlineQueryResultCachedVoice {
520
529
  caption?: string;
521
530
  /** Mode for parsing entities in the voice message caption. See formatting options for more details. */
522
531
  parse_mode?: ParseMode;
532
+ /** List of special entities that appear in the caption, which can be specified instead of parse_mode */
533
+ caption_entities?: MessageEntity[];
523
534
  /** Inline keyboard attached to the message */
524
535
  reply_markup?: InlineKeyboardMarkup;
525
536
  /** Content of the message to be sent instead of the voice message */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {