@grammyjs/types 2.4.5 → 2.6.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/LICENSE +1 -1
- package/manage.d.ts +2 -2
- package/message.d.ts +15 -8
- package/package.json +1 -1
- package/proxied.d.ts +51 -9
package/LICENSE
CHANGED
package/manage.d.ts
CHANGED
|
@@ -381,9 +381,9 @@ export interface ChatLocation {
|
|
|
381
381
|
|
|
382
382
|
/** This object represents a bot command. */
|
|
383
383
|
export interface BotCommand {
|
|
384
|
-
/** Text of the command
|
|
384
|
+
/** Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores. */
|
|
385
385
|
command: string;
|
|
386
|
-
/** Description of the command
|
|
386
|
+
/** Description of the command; 1-256 characters. */
|
|
387
387
|
description: string;
|
|
388
388
|
}
|
|
389
389
|
|
package/message.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export namespace Message {
|
|
|
25
25
|
forward_from_chat?: Chat;
|
|
26
26
|
/** For messages forwarded from channels, identifier of the original message in the channel */
|
|
27
27
|
forward_from_message_id?: number;
|
|
28
|
-
/** For messages
|
|
28
|
+
/** For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present */
|
|
29
29
|
forward_signature?: string;
|
|
30
30
|
/** Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages */
|
|
31
31
|
forward_sender_name?: string;
|
|
@@ -212,13 +212,13 @@ export interface MessageId {
|
|
|
212
212
|
message_id: number;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
/** The Bot API supports basic formatting for messages. You can use bold, italic, underlined and
|
|
215
|
+
/** The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting.
|
|
216
216
|
|
|
217
217
|
Note that Telegram clients will display an **alert** to the user before opening an inline link ('Open this link?' together with the full URL).
|
|
218
218
|
|
|
219
219
|
Message entities can be nested, providing following restrictions are met:
|
|
220
|
-
- If two entities
|
|
221
|
-
- bold, italic, underline and
|
|
220
|
+
- If two entities have common characters then one of them is fully contained inside another.
|
|
221
|
+
- bold, italic, underline, strikethrough, and spoiler entities can contain and can be part of any other entities, except pre and code.
|
|
222
222
|
- All other entities can't contain each other.
|
|
223
223
|
|
|
224
224
|
Links `tg://user?id=<user_id>` can be used to mention a user by their ID without using a username. Please note:
|
|
@@ -234,7 +234,8 @@ To use this mode, pass *MarkdownV2* in the *parse_mode* field. Use the following
|
|
|
234
234
|
_italic \*text_
|
|
235
235
|
__underline__
|
|
236
236
|
~strikethrough~
|
|
237
|
-
|
|
237
|
+
||spoiler||
|
|
238
|
+
*bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold*
|
|
238
239
|
[inline URL](http://www.example.com/)
|
|
239
240
|
[inline mention of a user](tg://user?id=123456789)
|
|
240
241
|
`inline fixed-width code`
|
|
@@ -261,7 +262,8 @@ To use this mode, pass *HTML* in the *parse_mode* field. The following tags are
|
|
|
261
262
|
<i>italic</i>, <em>italic</em>
|
|
262
263
|
<u>underline</u>, <ins>underline</ins>
|
|
263
264
|
<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del>
|
|
264
|
-
<
|
|
265
|
+
<span class="tg-spoiler">spoiler</span>, <tg-spoiler>spoiler</tg-spoiler>
|
|
266
|
+
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>
|
|
265
267
|
<a href="http://www.example.com/">inline URL</a>
|
|
266
268
|
<a href="tg://user?id=123456789">inline mention of a user</a>
|
|
267
269
|
<code>inline fixed-width code</code>
|
|
@@ -303,7 +305,7 @@ export type ParseMode = "Markdown" | "MarkdownV2" | "HTML";
|
|
|
303
305
|
|
|
304
306
|
export namespace MessageEntity {
|
|
305
307
|
interface AbstractMessageEntity {
|
|
306
|
-
/** Type of the entity.
|
|
308
|
+
/** Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames) */
|
|
307
309
|
type: string;
|
|
308
310
|
/** Offset in UTF-16 code units to the start of the entity */
|
|
309
311
|
offset: number;
|
|
@@ -323,6 +325,7 @@ export namespace MessageEntity {
|
|
|
323
325
|
| "italic"
|
|
324
326
|
| "underline"
|
|
325
327
|
| "strikethrough"
|
|
328
|
+
| "spoiler"
|
|
326
329
|
| "code";
|
|
327
330
|
}
|
|
328
331
|
export interface TextLinkMessageEntity extends AbstractMessageEntity {
|
|
@@ -628,6 +631,8 @@ export interface Sticker {
|
|
|
628
631
|
height: number;
|
|
629
632
|
/** True, if the sticker is animated */
|
|
630
633
|
is_animated: boolean;
|
|
634
|
+
/** True, if the sticker is a video sticker */
|
|
635
|
+
is_video: boolean;
|
|
631
636
|
/** Sticker thumbnail in the .WEBP or .JPG format */
|
|
632
637
|
thumb?: PhotoSize;
|
|
633
638
|
/** Emoji associated with the sticker */
|
|
@@ -648,11 +653,13 @@ export interface StickerSet {
|
|
|
648
653
|
title: string;
|
|
649
654
|
/** True, if the sticker set contains animated stickers */
|
|
650
655
|
is_animated: boolean;
|
|
656
|
+
/** True, if the sticker set contains video stickers */
|
|
657
|
+
is_video: boolean;
|
|
651
658
|
/** True, if the sticker set contains masks */
|
|
652
659
|
contains_masks: boolean;
|
|
653
660
|
/** List of all set stickers */
|
|
654
661
|
stickers: Sticker[];
|
|
655
|
-
/** Sticker set thumbnail in the .WEBP or .
|
|
662
|
+
/** Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format */
|
|
656
663
|
thumb?: PhotoSize;
|
|
657
664
|
}
|
|
658
665
|
|
package/package.json
CHANGED
package/proxied.d.ts
CHANGED
|
@@ -124,6 +124,8 @@ export interface InputFileProxy<F> {
|
|
|
124
124
|
disable_web_page_preview?: boolean;
|
|
125
125
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
126
126
|
disable_notification?: boolean;
|
|
127
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
128
|
+
protect_content?: boolean;
|
|
127
129
|
/** If the message is a reply, ID of the original message */
|
|
128
130
|
reply_to_message_id?: number;
|
|
129
131
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -144,6 +146,8 @@ export interface InputFileProxy<F> {
|
|
|
144
146
|
from_chat_id: number | string;
|
|
145
147
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
146
148
|
disable_notification?: boolean;
|
|
149
|
+
/** Protects the contents of the forwarded message from forwarding and saving */
|
|
150
|
+
protect_content?: boolean;
|
|
147
151
|
/** Message identifier in the chat specified in from_chat_id */
|
|
148
152
|
message_id: number;
|
|
149
153
|
}): Message;
|
|
@@ -164,6 +168,8 @@ export interface InputFileProxy<F> {
|
|
|
164
168
|
caption_entities?: MessageEntity[];
|
|
165
169
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
166
170
|
disable_notification?: boolean;
|
|
171
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
172
|
+
protect_content?: boolean;
|
|
167
173
|
/** If the message is a reply, ID of the original message */
|
|
168
174
|
reply_to_message_id?: number;
|
|
169
175
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -190,6 +196,8 @@ export interface InputFileProxy<F> {
|
|
|
190
196
|
caption_entities?: MessageEntity[];
|
|
191
197
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
192
198
|
disable_notification?: boolean;
|
|
199
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
200
|
+
protect_content?: boolean;
|
|
193
201
|
/** If the message is a reply, ID of the original message */
|
|
194
202
|
reply_to_message_id?: number;
|
|
195
203
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -226,6 +234,8 @@ export interface InputFileProxy<F> {
|
|
|
226
234
|
thumb?: F;
|
|
227
235
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
228
236
|
disable_notification?: boolean;
|
|
237
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
238
|
+
protect_content?: boolean;
|
|
229
239
|
/** If the message is a reply, ID of the original message */
|
|
230
240
|
reply_to_message_id?: number;
|
|
231
241
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -256,6 +266,8 @@ export interface InputFileProxy<F> {
|
|
|
256
266
|
disable_content_type_detection?: boolean;
|
|
257
267
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
258
268
|
disable_notification?: boolean;
|
|
269
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
270
|
+
protect_content?: boolean;
|
|
259
271
|
/** If the message is a reply, ID of the original message */
|
|
260
272
|
reply_to_message_id?: number;
|
|
261
273
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -292,6 +304,8 @@ export interface InputFileProxy<F> {
|
|
|
292
304
|
supports_streaming?: boolean;
|
|
293
305
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
294
306
|
disable_notification?: boolean;
|
|
307
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
308
|
+
protect_content?: boolean;
|
|
295
309
|
/** If the message is a reply, ID of the original message */
|
|
296
310
|
reply_to_message_id?: number;
|
|
297
311
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -326,6 +340,8 @@ export interface InputFileProxy<F> {
|
|
|
326
340
|
caption_entities?: MessageEntity[];
|
|
327
341
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
328
342
|
disable_notification?: boolean;
|
|
343
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
344
|
+
protect_content?: boolean;
|
|
329
345
|
/** If the message is a reply, ID of the original message */
|
|
330
346
|
reply_to_message_id?: number;
|
|
331
347
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -354,6 +370,8 @@ export interface InputFileProxy<F> {
|
|
|
354
370
|
duration?: number;
|
|
355
371
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
356
372
|
disable_notification?: boolean;
|
|
373
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
374
|
+
protect_content?: boolean;
|
|
357
375
|
/** If the message is a reply, ID of the original message */
|
|
358
376
|
reply_to_message_id?: number;
|
|
359
377
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -381,6 +399,8 @@ export interface InputFileProxy<F> {
|
|
|
381
399
|
thumb?: F;
|
|
382
400
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
383
401
|
disable_notification?: boolean;
|
|
402
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
403
|
+
protect_content?: boolean;
|
|
384
404
|
/** If the message is a reply, ID of the original message */
|
|
385
405
|
reply_to_message_id?: number;
|
|
386
406
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -406,6 +426,8 @@ export interface InputFileProxy<F> {
|
|
|
406
426
|
>;
|
|
407
427
|
/** Sends the messages silently. Users will receive a notification with no sound. */
|
|
408
428
|
disable_notification?: boolean;
|
|
429
|
+
/** Protects the contents of the sent messages from forwarding and saving */
|
|
430
|
+
protect_content?: boolean;
|
|
409
431
|
/** If messages are a reply, ID of the original message */
|
|
410
432
|
reply_to_message_id?: number;
|
|
411
433
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -435,6 +457,8 @@ export interface InputFileProxy<F> {
|
|
|
435
457
|
proximity_alert_radius?: number;
|
|
436
458
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
437
459
|
disable_notification?: boolean;
|
|
460
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
461
|
+
protect_content?: boolean;
|
|
438
462
|
/** If the message is a reply, ID of the original message */
|
|
439
463
|
reply_to_message_id?: number;
|
|
440
464
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -503,6 +527,8 @@ export interface InputFileProxy<F> {
|
|
|
503
527
|
google_place_type?: string;
|
|
504
528
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
505
529
|
disable_notification?: boolean;
|
|
530
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
531
|
+
protect_content?: boolean;
|
|
506
532
|
/** If the message is a reply, ID of the original message */
|
|
507
533
|
reply_to_message_id?: number;
|
|
508
534
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -529,6 +555,8 @@ export interface InputFileProxy<F> {
|
|
|
529
555
|
vcard?: string;
|
|
530
556
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
531
557
|
disable_notification?: boolean;
|
|
558
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
559
|
+
protect_content?: boolean;
|
|
532
560
|
/** If the message is a reply, ID of the original message */
|
|
533
561
|
reply_to_message_id?: number;
|
|
534
562
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -571,6 +599,8 @@ export interface InputFileProxy<F> {
|
|
|
571
599
|
is_closed?: boolean;
|
|
572
600
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
573
601
|
disable_notification?: boolean;
|
|
602
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
603
|
+
protect_content?: boolean;
|
|
574
604
|
/** If the message is a reply, ID of the original message */
|
|
575
605
|
reply_to_message_id?: number;
|
|
576
606
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -591,6 +621,8 @@ export interface InputFileProxy<F> {
|
|
|
591
621
|
emoji?: string;
|
|
592
622
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
593
623
|
disable_notification?: boolean;
|
|
624
|
+
/** Protects the contents of the sent message from forwarding */
|
|
625
|
+
protect_content?: boolean;
|
|
594
626
|
/** If the message is a reply, ID of the original message */
|
|
595
627
|
reply_to_message_id?: number;
|
|
596
628
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -662,7 +694,7 @@ export interface InputFileProxy<F> {
|
|
|
662
694
|
|
|
663
695
|
/** Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success. */
|
|
664
696
|
unbanChatMember(args: {
|
|
665
|
-
/** Unique identifier for the target group or username of the target supergroup or channel (in the format @
|
|
697
|
+
/** Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername) */
|
|
666
698
|
chat_id: number | string;
|
|
667
699
|
/** Unique identifier of the target user */
|
|
668
700
|
user_id: number;
|
|
@@ -1052,7 +1084,7 @@ export interface InputFileProxy<F> {
|
|
|
1052
1084
|
message_id: number;
|
|
1053
1085
|
}): true;
|
|
1054
1086
|
|
|
1055
|
-
/** Use this method to send static .WEBP
|
|
1087
|
+
/** Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned. */
|
|
1056
1088
|
sendSticker(args: {
|
|
1057
1089
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1058
1090
|
chat_id: number | string;
|
|
@@ -1060,6 +1092,8 @@ export interface InputFileProxy<F> {
|
|
|
1060
1092
|
sticker: F | string;
|
|
1061
1093
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
1062
1094
|
disable_notification?: boolean;
|
|
1095
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
1096
|
+
protect_content?: boolean;
|
|
1063
1097
|
/** If the message is a reply, ID of the original message */
|
|
1064
1098
|
reply_to_message_id?: number;
|
|
1065
1099
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -1086,7 +1120,7 @@ export interface InputFileProxy<F> {
|
|
|
1086
1120
|
png_sticker: F;
|
|
1087
1121
|
}): File;
|
|
1088
1122
|
|
|
1089
|
-
/** Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker or
|
|
1123
|
+
/** Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success. */
|
|
1090
1124
|
createNewStickerSet(args: {
|
|
1091
1125
|
/** User identifier of created sticker set owner */
|
|
1092
1126
|
user_id: number;
|
|
@@ -1096,8 +1130,10 @@ export interface InputFileProxy<F> {
|
|
|
1096
1130
|
title: string;
|
|
1097
1131
|
/** PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. */
|
|
1098
1132
|
png_sticker?: F | string;
|
|
1099
|
-
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/
|
|
1133
|
+
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements */
|
|
1100
1134
|
tgs_sticker?: F;
|
|
1135
|
+
/** WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements */
|
|
1136
|
+
webm_sticker?: F;
|
|
1101
1137
|
/** One or more emoji corresponding to the sticker */
|
|
1102
1138
|
emojis: string;
|
|
1103
1139
|
/** Pass True, if a set of mask stickers should be created */
|
|
@@ -1106,7 +1142,7 @@ export interface InputFileProxy<F> {
|
|
|
1106
1142
|
mask_position?: MaskPosition;
|
|
1107
1143
|
}): true;
|
|
1108
1144
|
|
|
1109
|
-
/** Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker or
|
|
1145
|
+
/** Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success. */
|
|
1110
1146
|
addStickerToSet(args: {
|
|
1111
1147
|
/** User identifier of sticker set owner */
|
|
1112
1148
|
user_id: number;
|
|
@@ -1114,8 +1150,10 @@ export interface InputFileProxy<F> {
|
|
|
1114
1150
|
name: string;
|
|
1115
1151
|
/** PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. */
|
|
1116
1152
|
png_sticker?: F | string;
|
|
1117
|
-
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/
|
|
1153
|
+
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements */
|
|
1118
1154
|
tgs_sticker?: F;
|
|
1155
|
+
/** WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements */
|
|
1156
|
+
webm_sticker?: F;
|
|
1119
1157
|
/** One or more emoji corresponding to the sticker */
|
|
1120
1158
|
emojis: string;
|
|
1121
1159
|
/** An object for position where the mask should be placed on faces */
|
|
@@ -1136,14 +1174,14 @@ export interface InputFileProxy<F> {
|
|
|
1136
1174
|
sticker: string;
|
|
1137
1175
|
}): true;
|
|
1138
1176
|
|
|
1139
|
-
/** Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Returns True on success. */
|
|
1177
|
+
/** Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success. */
|
|
1140
1178
|
setStickerSetThumb(args: {
|
|
1141
1179
|
/** Sticker set name */
|
|
1142
1180
|
name: string;
|
|
1143
1181
|
/** User identifier of the sticker set owner */
|
|
1144
1182
|
user_id: number;
|
|
1145
|
-
/** A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/
|
|
1146
|
-
thumb
|
|
1183
|
+
/** A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnails can't be uploaded via HTTP URL. */
|
|
1184
|
+
thumb?: F | string;
|
|
1147
1185
|
}): true;
|
|
1148
1186
|
|
|
1149
1187
|
/** Use this method to send answers to an inline query. On success, True is returned.
|
|
@@ -1215,6 +1253,8 @@ export interface InputFileProxy<F> {
|
|
|
1215
1253
|
is_flexible?: boolean;
|
|
1216
1254
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
1217
1255
|
disable_notification?: boolean;
|
|
1256
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
1257
|
+
protect_content?: boolean;
|
|
1218
1258
|
/** If the message is a reply, ID of the original message */
|
|
1219
1259
|
reply_to_message_id?: number;
|
|
1220
1260
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|
|
@@ -1263,6 +1303,8 @@ export interface InputFileProxy<F> {
|
|
|
1263
1303
|
game_short_name: string;
|
|
1264
1304
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
1265
1305
|
disable_notification?: boolean;
|
|
1306
|
+
/** Protects the contents of the sent message from forwarding and saving */
|
|
1307
|
+
protect_content?: boolean;
|
|
1266
1308
|
/** If the message is a reply, ID of the original message */
|
|
1267
1309
|
reply_to_message_id?: number;
|
|
1268
1310
|
/** Pass True, if the message should be sent even if the specified replied-to message is not found */
|