@effect-ak/tg-bot-client 0.5.4 → 0.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/dist/bot.d.ts +110 -0
- package/dist/bot.js +1 -0
- package/dist/bot.mjs +1 -0
- package/dist/config-CmVKgghE.d.ts +3067 -0
- package/dist/index.d.ts +38 -3556
- package/dist/index.js +1 -22
- package/dist/index.mjs +1 -22
- package/dist/webapp.d.ts +391 -0
- package/dist/webapp.js +1 -0
- package/dist/webapp.mjs +0 -0
- package/package.json +18 -5
- package/readme.md +28 -19
|
@@ -0,0 +1,3067 @@
|
|
|
1
|
+
import * as effect_Cause from 'effect/Cause';
|
|
2
|
+
import * as effect_Types from 'effect/Types';
|
|
3
|
+
import * as Context from 'effect/Context';
|
|
4
|
+
|
|
5
|
+
type AllowedUpdateName = Exclude<keyof Update, "update_id">;
|
|
6
|
+
interface AcceptedGiftTypes {
|
|
7
|
+
unlimited_gifts: boolean;
|
|
8
|
+
limited_gifts: boolean;
|
|
9
|
+
unique_gifts: boolean;
|
|
10
|
+
premium_subscription: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface AffiliateInfo {
|
|
13
|
+
commission_per_mille: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
affiliate_user?: User;
|
|
16
|
+
affiliate_chat?: Chat;
|
|
17
|
+
nanostar_amount?: number;
|
|
18
|
+
}
|
|
19
|
+
interface Animation {
|
|
20
|
+
file_id: string;
|
|
21
|
+
file_unique_id: string;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
duration: number;
|
|
25
|
+
thumbnail?: PhotoSize;
|
|
26
|
+
file_name?: string;
|
|
27
|
+
mime_type?: string;
|
|
28
|
+
file_size?: number;
|
|
29
|
+
}
|
|
30
|
+
interface Audio {
|
|
31
|
+
file_id: string;
|
|
32
|
+
file_unique_id: string;
|
|
33
|
+
duration: number;
|
|
34
|
+
performer?: string;
|
|
35
|
+
title?: string;
|
|
36
|
+
file_name?: string;
|
|
37
|
+
mime_type?: string;
|
|
38
|
+
file_size?: number;
|
|
39
|
+
thumbnail?: PhotoSize;
|
|
40
|
+
}
|
|
41
|
+
type BackgroundFill = BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient;
|
|
42
|
+
interface BackgroundFillFreeformGradient {
|
|
43
|
+
type: "freeform_gradient";
|
|
44
|
+
colors: number[];
|
|
45
|
+
}
|
|
46
|
+
interface BackgroundFillGradient {
|
|
47
|
+
type: "gradient";
|
|
48
|
+
top_color: number;
|
|
49
|
+
bottom_color: number;
|
|
50
|
+
rotation_angle: number;
|
|
51
|
+
}
|
|
52
|
+
interface BackgroundFillSolid {
|
|
53
|
+
type: "solid";
|
|
54
|
+
color: number;
|
|
55
|
+
}
|
|
56
|
+
type BackgroundType = BackgroundTypeFill | BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeChatTheme;
|
|
57
|
+
interface BackgroundTypeChatTheme {
|
|
58
|
+
type: "chat_theme";
|
|
59
|
+
theme_name: string;
|
|
60
|
+
}
|
|
61
|
+
interface BackgroundTypeFill {
|
|
62
|
+
type: "fill";
|
|
63
|
+
fill: BackgroundFill;
|
|
64
|
+
dark_theme_dimming: number;
|
|
65
|
+
}
|
|
66
|
+
interface BackgroundTypePattern {
|
|
67
|
+
type: "pattern";
|
|
68
|
+
document: Document;
|
|
69
|
+
fill: BackgroundFill;
|
|
70
|
+
intensity: number;
|
|
71
|
+
is_inverted?: boolean;
|
|
72
|
+
is_moving?: boolean;
|
|
73
|
+
}
|
|
74
|
+
interface BackgroundTypeWallpaper {
|
|
75
|
+
type: "wallpaper";
|
|
76
|
+
document: Document;
|
|
77
|
+
dark_theme_dimming: number;
|
|
78
|
+
is_blurred?: boolean;
|
|
79
|
+
is_moving?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface Birthdate {
|
|
82
|
+
day: number;
|
|
83
|
+
month: number;
|
|
84
|
+
year?: number;
|
|
85
|
+
}
|
|
86
|
+
interface BotCommand {
|
|
87
|
+
command: string;
|
|
88
|
+
description: string;
|
|
89
|
+
}
|
|
90
|
+
type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
|
|
91
|
+
interface BotCommandScopeAllChatAdministrators {
|
|
92
|
+
type: "all_chat_administrators";
|
|
93
|
+
}
|
|
94
|
+
interface BotCommandScopeAllGroupChats {
|
|
95
|
+
type: "all_group_chats";
|
|
96
|
+
}
|
|
97
|
+
interface BotCommandScopeAllPrivateChats {
|
|
98
|
+
type: "all_private_chats";
|
|
99
|
+
}
|
|
100
|
+
interface BotCommandScopeChat {
|
|
101
|
+
type: "chat";
|
|
102
|
+
chat_id: number | string;
|
|
103
|
+
}
|
|
104
|
+
interface BotCommandScopeChatAdministrators {
|
|
105
|
+
type: "chat_administrators";
|
|
106
|
+
chat_id: number | string;
|
|
107
|
+
}
|
|
108
|
+
interface BotCommandScopeChatMember {
|
|
109
|
+
type: "chat_member";
|
|
110
|
+
chat_id: number | string;
|
|
111
|
+
user_id: number;
|
|
112
|
+
}
|
|
113
|
+
interface BotCommandScopeDefault {
|
|
114
|
+
type: "default";
|
|
115
|
+
}
|
|
116
|
+
interface BotDescription {
|
|
117
|
+
description: string;
|
|
118
|
+
}
|
|
119
|
+
interface BotName {
|
|
120
|
+
name: string;
|
|
121
|
+
}
|
|
122
|
+
interface BotShortDescription {
|
|
123
|
+
short_description: string;
|
|
124
|
+
}
|
|
125
|
+
interface BusinessBotRights {
|
|
126
|
+
can_reply?: boolean;
|
|
127
|
+
can_read_messages?: boolean;
|
|
128
|
+
can_delete_sent_messages?: boolean;
|
|
129
|
+
can_delete_all_messages?: boolean;
|
|
130
|
+
can_edit_name?: boolean;
|
|
131
|
+
can_edit_bio?: boolean;
|
|
132
|
+
can_edit_profile_photo?: boolean;
|
|
133
|
+
can_edit_username?: boolean;
|
|
134
|
+
can_change_gift_settings?: boolean;
|
|
135
|
+
can_view_gifts_and_stars?: boolean;
|
|
136
|
+
can_convert_gifts_to_stars?: boolean;
|
|
137
|
+
can_transfer_and_upgrade_gifts?: boolean;
|
|
138
|
+
can_transfer_stars?: boolean;
|
|
139
|
+
can_manage_stories?: boolean;
|
|
140
|
+
}
|
|
141
|
+
interface BusinessConnection {
|
|
142
|
+
id: string;
|
|
143
|
+
user: User;
|
|
144
|
+
user_chat_id: number;
|
|
145
|
+
date: number;
|
|
146
|
+
is_enabled: boolean;
|
|
147
|
+
rights?: BusinessBotRights;
|
|
148
|
+
}
|
|
149
|
+
interface BusinessIntro {
|
|
150
|
+
title?: string;
|
|
151
|
+
message?: string;
|
|
152
|
+
sticker?: Sticker;
|
|
153
|
+
}
|
|
154
|
+
interface BusinessLocation {
|
|
155
|
+
address: string;
|
|
156
|
+
location?: Location;
|
|
157
|
+
}
|
|
158
|
+
interface BusinessMessagesDeleted {
|
|
159
|
+
business_connection_id: string;
|
|
160
|
+
chat: Chat;
|
|
161
|
+
message_ids: number[];
|
|
162
|
+
}
|
|
163
|
+
interface BusinessOpeningHours {
|
|
164
|
+
time_zone_name: string;
|
|
165
|
+
opening_hours: BusinessOpeningHoursInterval[];
|
|
166
|
+
}
|
|
167
|
+
interface BusinessOpeningHoursInterval {
|
|
168
|
+
opening_minute: number;
|
|
169
|
+
closing_minute: number;
|
|
170
|
+
}
|
|
171
|
+
type CallbackGame = never;
|
|
172
|
+
interface CallbackQuery {
|
|
173
|
+
id: string;
|
|
174
|
+
from: User;
|
|
175
|
+
chat_instance: string;
|
|
176
|
+
message?: MaybeInaccessibleMessage;
|
|
177
|
+
inline_message_id?: string;
|
|
178
|
+
data?: string;
|
|
179
|
+
game_short_name?: string;
|
|
180
|
+
}
|
|
181
|
+
interface Chat {
|
|
182
|
+
id: number;
|
|
183
|
+
type: "private" | "group" | "supergroup" | "channel";
|
|
184
|
+
title?: string;
|
|
185
|
+
username?: string;
|
|
186
|
+
first_name?: string;
|
|
187
|
+
last_name?: string;
|
|
188
|
+
is_forum?: boolean;
|
|
189
|
+
}
|
|
190
|
+
interface ChatAdministratorRights {
|
|
191
|
+
is_anonymous: boolean;
|
|
192
|
+
can_manage_chat: boolean;
|
|
193
|
+
can_delete_messages: boolean;
|
|
194
|
+
can_manage_video_chats: boolean;
|
|
195
|
+
can_restrict_members: boolean;
|
|
196
|
+
can_promote_members: boolean;
|
|
197
|
+
can_change_info: boolean;
|
|
198
|
+
can_invite_users: boolean;
|
|
199
|
+
can_post_stories: boolean;
|
|
200
|
+
can_edit_stories: boolean;
|
|
201
|
+
can_delete_stories: boolean;
|
|
202
|
+
can_post_messages?: boolean;
|
|
203
|
+
can_edit_messages?: boolean;
|
|
204
|
+
can_pin_messages?: boolean;
|
|
205
|
+
can_manage_topics?: boolean;
|
|
206
|
+
}
|
|
207
|
+
interface ChatBackground {
|
|
208
|
+
type: BackgroundType;
|
|
209
|
+
}
|
|
210
|
+
interface ChatBoost {
|
|
211
|
+
boost_id: string;
|
|
212
|
+
add_date: number;
|
|
213
|
+
expiration_date: number;
|
|
214
|
+
source: ChatBoostSource;
|
|
215
|
+
}
|
|
216
|
+
interface ChatBoostAdded {
|
|
217
|
+
boost_count: number;
|
|
218
|
+
}
|
|
219
|
+
interface ChatBoostRemoved {
|
|
220
|
+
chat: Chat;
|
|
221
|
+
boost_id: string;
|
|
222
|
+
remove_date: number;
|
|
223
|
+
source: ChatBoostSource;
|
|
224
|
+
}
|
|
225
|
+
type ChatBoostSource = ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway;
|
|
226
|
+
interface ChatBoostSourceGiftCode {
|
|
227
|
+
source: "gift_code";
|
|
228
|
+
user: User;
|
|
229
|
+
}
|
|
230
|
+
interface ChatBoostSourceGiveaway {
|
|
231
|
+
source: "giveaway";
|
|
232
|
+
giveaway_message_id: number;
|
|
233
|
+
user?: User;
|
|
234
|
+
prize_star_count?: number;
|
|
235
|
+
is_unclaimed?: boolean;
|
|
236
|
+
}
|
|
237
|
+
interface ChatBoostSourcePremium {
|
|
238
|
+
source: "premium";
|
|
239
|
+
user: User;
|
|
240
|
+
}
|
|
241
|
+
interface ChatBoostUpdated {
|
|
242
|
+
chat: Chat;
|
|
243
|
+
boost: ChatBoost;
|
|
244
|
+
}
|
|
245
|
+
interface ChatFullInfo {
|
|
246
|
+
id: number;
|
|
247
|
+
type: "private" | "group" | "supergroup" | "channel";
|
|
248
|
+
accent_color_id: number;
|
|
249
|
+
max_reaction_count: number;
|
|
250
|
+
accepted_gift_types: AcceptedGiftTypes;
|
|
251
|
+
title?: string;
|
|
252
|
+
username?: string;
|
|
253
|
+
first_name?: string;
|
|
254
|
+
last_name?: string;
|
|
255
|
+
is_forum?: boolean;
|
|
256
|
+
photo?: ChatPhoto;
|
|
257
|
+
active_usernames?: string[];
|
|
258
|
+
birthdate?: Birthdate;
|
|
259
|
+
business_intro?: BusinessIntro;
|
|
260
|
+
business_location?: BusinessLocation;
|
|
261
|
+
business_opening_hours?: BusinessOpeningHours;
|
|
262
|
+
personal_chat?: Chat;
|
|
263
|
+
available_reactions?: ReactionType[];
|
|
264
|
+
background_custom_emoji_id?: string;
|
|
265
|
+
profile_accent_color_id?: number;
|
|
266
|
+
profile_background_custom_emoji_id?: string;
|
|
267
|
+
emoji_status_custom_emoji_id?: string;
|
|
268
|
+
emoji_status_expiration_date?: number;
|
|
269
|
+
bio?: string;
|
|
270
|
+
has_private_forwards?: boolean;
|
|
271
|
+
has_restricted_voice_and_video_messages?: boolean;
|
|
272
|
+
join_to_send_messages?: boolean;
|
|
273
|
+
join_by_request?: boolean;
|
|
274
|
+
description?: string;
|
|
275
|
+
invite_link?: string;
|
|
276
|
+
pinned_message?: Message;
|
|
277
|
+
permissions?: ChatPermissions;
|
|
278
|
+
can_send_paid_media?: boolean;
|
|
279
|
+
slow_mode_delay?: number;
|
|
280
|
+
unrestrict_boost_count?: number;
|
|
281
|
+
message_auto_delete_time?: number;
|
|
282
|
+
has_aggressive_anti_spam_enabled?: boolean;
|
|
283
|
+
has_hidden_members?: boolean;
|
|
284
|
+
has_protected_content?: boolean;
|
|
285
|
+
has_visible_history?: boolean;
|
|
286
|
+
sticker_set_name?: string;
|
|
287
|
+
can_set_sticker_set?: boolean;
|
|
288
|
+
custom_emoji_sticker_set_name?: string;
|
|
289
|
+
linked_chat_id?: number;
|
|
290
|
+
location?: ChatLocation;
|
|
291
|
+
}
|
|
292
|
+
interface ChatInviteLink {
|
|
293
|
+
invite_link: string;
|
|
294
|
+
creator: User;
|
|
295
|
+
creates_join_request: boolean;
|
|
296
|
+
is_primary: boolean;
|
|
297
|
+
is_revoked: boolean;
|
|
298
|
+
name?: string;
|
|
299
|
+
expire_date?: number;
|
|
300
|
+
member_limit?: number;
|
|
301
|
+
pending_join_request_count?: number;
|
|
302
|
+
subscription_period?: number;
|
|
303
|
+
subscription_price?: number;
|
|
304
|
+
}
|
|
305
|
+
interface ChatJoinRequest {
|
|
306
|
+
chat: Chat;
|
|
307
|
+
from: User;
|
|
308
|
+
user_chat_id: number;
|
|
309
|
+
date: number;
|
|
310
|
+
bio?: string;
|
|
311
|
+
invite_link?: ChatInviteLink;
|
|
312
|
+
}
|
|
313
|
+
interface ChatLocation {
|
|
314
|
+
location: Location;
|
|
315
|
+
address: string;
|
|
316
|
+
}
|
|
317
|
+
type ChatMember = ChatMemberOwner | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned;
|
|
318
|
+
interface ChatMemberAdministrator {
|
|
319
|
+
status: "administrator";
|
|
320
|
+
user: User;
|
|
321
|
+
can_be_edited: boolean;
|
|
322
|
+
is_anonymous: boolean;
|
|
323
|
+
can_manage_chat: boolean;
|
|
324
|
+
can_delete_messages: boolean;
|
|
325
|
+
can_manage_video_chats: boolean;
|
|
326
|
+
can_restrict_members: boolean;
|
|
327
|
+
can_promote_members: boolean;
|
|
328
|
+
can_change_info: boolean;
|
|
329
|
+
can_invite_users: boolean;
|
|
330
|
+
can_post_stories: boolean;
|
|
331
|
+
can_edit_stories: boolean;
|
|
332
|
+
can_delete_stories: boolean;
|
|
333
|
+
can_post_messages?: boolean;
|
|
334
|
+
can_edit_messages?: boolean;
|
|
335
|
+
can_pin_messages?: boolean;
|
|
336
|
+
can_manage_topics?: boolean;
|
|
337
|
+
custom_title?: string;
|
|
338
|
+
}
|
|
339
|
+
interface ChatMemberBanned {
|
|
340
|
+
status: "kicked";
|
|
341
|
+
user: User;
|
|
342
|
+
until_date: number;
|
|
343
|
+
}
|
|
344
|
+
interface ChatMemberLeft {
|
|
345
|
+
status: "left";
|
|
346
|
+
user: User;
|
|
347
|
+
}
|
|
348
|
+
interface ChatMemberMember {
|
|
349
|
+
status: "member";
|
|
350
|
+
user: User;
|
|
351
|
+
until_date?: number;
|
|
352
|
+
}
|
|
353
|
+
interface ChatMemberOwner {
|
|
354
|
+
status: "creator";
|
|
355
|
+
user: User;
|
|
356
|
+
is_anonymous: boolean;
|
|
357
|
+
custom_title?: string;
|
|
358
|
+
}
|
|
359
|
+
interface ChatMemberRestricted {
|
|
360
|
+
status: "restricted";
|
|
361
|
+
user: User;
|
|
362
|
+
is_member: boolean;
|
|
363
|
+
can_send_messages: boolean;
|
|
364
|
+
can_send_audios: boolean;
|
|
365
|
+
can_send_documents: boolean;
|
|
366
|
+
can_send_photos: boolean;
|
|
367
|
+
can_send_videos: boolean;
|
|
368
|
+
can_send_video_notes: boolean;
|
|
369
|
+
can_send_voice_notes: boolean;
|
|
370
|
+
can_send_polls: boolean;
|
|
371
|
+
can_send_other_messages: boolean;
|
|
372
|
+
can_add_web_page_previews: boolean;
|
|
373
|
+
can_change_info: boolean;
|
|
374
|
+
can_invite_users: boolean;
|
|
375
|
+
can_pin_messages: boolean;
|
|
376
|
+
can_manage_topics: boolean;
|
|
377
|
+
until_date: number;
|
|
378
|
+
}
|
|
379
|
+
interface ChatMemberUpdated {
|
|
380
|
+
chat: Chat;
|
|
381
|
+
from: User;
|
|
382
|
+
date: number;
|
|
383
|
+
old_chat_member: ChatMember;
|
|
384
|
+
new_chat_member: ChatMember;
|
|
385
|
+
invite_link?: ChatInviteLink;
|
|
386
|
+
via_join_request?: boolean;
|
|
387
|
+
via_chat_folder_invite_link?: boolean;
|
|
388
|
+
}
|
|
389
|
+
interface ChatPermissions {
|
|
390
|
+
can_send_messages?: boolean;
|
|
391
|
+
can_send_audios?: boolean;
|
|
392
|
+
can_send_documents?: boolean;
|
|
393
|
+
can_send_photos?: boolean;
|
|
394
|
+
can_send_videos?: boolean;
|
|
395
|
+
can_send_video_notes?: boolean;
|
|
396
|
+
can_send_voice_notes?: boolean;
|
|
397
|
+
can_send_polls?: boolean;
|
|
398
|
+
can_send_other_messages?: boolean;
|
|
399
|
+
can_add_web_page_previews?: boolean;
|
|
400
|
+
can_change_info?: boolean;
|
|
401
|
+
can_invite_users?: boolean;
|
|
402
|
+
can_pin_messages?: boolean;
|
|
403
|
+
can_manage_topics?: boolean;
|
|
404
|
+
}
|
|
405
|
+
interface ChatPhoto {
|
|
406
|
+
small_file_id: string;
|
|
407
|
+
small_file_unique_id: string;
|
|
408
|
+
big_file_id: string;
|
|
409
|
+
big_file_unique_id: string;
|
|
410
|
+
}
|
|
411
|
+
interface ChatShared {
|
|
412
|
+
request_id: number;
|
|
413
|
+
chat_id: number;
|
|
414
|
+
title?: string;
|
|
415
|
+
username?: string;
|
|
416
|
+
photo?: PhotoSize[];
|
|
417
|
+
}
|
|
418
|
+
interface ChosenInlineResult {
|
|
419
|
+
result_id: string;
|
|
420
|
+
from: User;
|
|
421
|
+
query: string;
|
|
422
|
+
location?: Location;
|
|
423
|
+
inline_message_id?: string;
|
|
424
|
+
}
|
|
425
|
+
interface Contact {
|
|
426
|
+
phone_number: string;
|
|
427
|
+
first_name: string;
|
|
428
|
+
last_name?: string;
|
|
429
|
+
user_id?: number;
|
|
430
|
+
vcard?: string;
|
|
431
|
+
}
|
|
432
|
+
interface CopyTextButton {
|
|
433
|
+
text: string;
|
|
434
|
+
}
|
|
435
|
+
interface Dice {
|
|
436
|
+
emoji: string;
|
|
437
|
+
value: number;
|
|
438
|
+
}
|
|
439
|
+
interface Document {
|
|
440
|
+
file_id: string;
|
|
441
|
+
file_unique_id: string;
|
|
442
|
+
thumbnail?: PhotoSize;
|
|
443
|
+
file_name?: string;
|
|
444
|
+
mime_type?: string;
|
|
445
|
+
file_size?: number;
|
|
446
|
+
}
|
|
447
|
+
interface EncryptedCredentials {
|
|
448
|
+
data: string;
|
|
449
|
+
hash: string;
|
|
450
|
+
secret: string;
|
|
451
|
+
}
|
|
452
|
+
interface EncryptedPassportElement {
|
|
453
|
+
type: string;
|
|
454
|
+
hash: string;
|
|
455
|
+
data?: string;
|
|
456
|
+
phone_number?: string;
|
|
457
|
+
email?: string;
|
|
458
|
+
files?: PassportFile[];
|
|
459
|
+
front_side?: PassportFile;
|
|
460
|
+
reverse_side?: PassportFile;
|
|
461
|
+
selfie?: PassportFile;
|
|
462
|
+
translation?: PassportFile[];
|
|
463
|
+
}
|
|
464
|
+
interface ExternalReplyInfo {
|
|
465
|
+
origin: MessageOrigin;
|
|
466
|
+
chat?: Chat;
|
|
467
|
+
message_id?: number;
|
|
468
|
+
link_preview_options?: LinkPreviewOptions;
|
|
469
|
+
animation?: Animation;
|
|
470
|
+
audio?: Audio;
|
|
471
|
+
document?: Document;
|
|
472
|
+
paid_media?: PaidMediaInfo;
|
|
473
|
+
photo?: PhotoSize[];
|
|
474
|
+
sticker?: Sticker;
|
|
475
|
+
story?: Story;
|
|
476
|
+
video?: Video;
|
|
477
|
+
video_note?: VideoNote;
|
|
478
|
+
voice?: Voice;
|
|
479
|
+
has_media_spoiler?: boolean;
|
|
480
|
+
contact?: Contact;
|
|
481
|
+
dice?: Dice;
|
|
482
|
+
game?: Game;
|
|
483
|
+
giveaway?: Giveaway;
|
|
484
|
+
giveaway_winners?: GiveawayWinners;
|
|
485
|
+
invoice?: Invoice;
|
|
486
|
+
location?: Location;
|
|
487
|
+
poll?: Poll;
|
|
488
|
+
venue?: Venue;
|
|
489
|
+
}
|
|
490
|
+
interface File {
|
|
491
|
+
file_id: string;
|
|
492
|
+
file_unique_id: string;
|
|
493
|
+
file_size?: number;
|
|
494
|
+
file_path?: string;
|
|
495
|
+
}
|
|
496
|
+
interface ForceReply {
|
|
497
|
+
force_reply: boolean;
|
|
498
|
+
input_field_placeholder?: string;
|
|
499
|
+
selective?: boolean;
|
|
500
|
+
}
|
|
501
|
+
interface ForumTopic {
|
|
502
|
+
message_thread_id: number;
|
|
503
|
+
name: string;
|
|
504
|
+
icon_color: number;
|
|
505
|
+
icon_custom_emoji_id?: string;
|
|
506
|
+
}
|
|
507
|
+
type ForumTopicClosed = never;
|
|
508
|
+
interface ForumTopicCreated {
|
|
509
|
+
name: string;
|
|
510
|
+
icon_color: number;
|
|
511
|
+
icon_custom_emoji_id?: string;
|
|
512
|
+
}
|
|
513
|
+
interface ForumTopicEdited {
|
|
514
|
+
name?: string;
|
|
515
|
+
icon_custom_emoji_id?: string;
|
|
516
|
+
}
|
|
517
|
+
type ForumTopicReopened = never;
|
|
518
|
+
interface Game {
|
|
519
|
+
title: string;
|
|
520
|
+
description: string;
|
|
521
|
+
photo: PhotoSize[];
|
|
522
|
+
text?: string;
|
|
523
|
+
text_entities?: MessageEntity[];
|
|
524
|
+
animation?: Animation;
|
|
525
|
+
}
|
|
526
|
+
interface GameHighScore {
|
|
527
|
+
position: number;
|
|
528
|
+
user: User;
|
|
529
|
+
score: number;
|
|
530
|
+
}
|
|
531
|
+
type GeneralForumTopicHidden = never;
|
|
532
|
+
type GeneralForumTopicUnhidden = never;
|
|
533
|
+
interface Gift {
|
|
534
|
+
id: string;
|
|
535
|
+
sticker: Sticker;
|
|
536
|
+
star_count: number;
|
|
537
|
+
upgrade_star_count?: number;
|
|
538
|
+
total_count?: number;
|
|
539
|
+
remaining_count?: number;
|
|
540
|
+
}
|
|
541
|
+
interface GiftInfo {
|
|
542
|
+
gift: Gift;
|
|
543
|
+
owned_gift_id?: string;
|
|
544
|
+
convert_star_count?: number;
|
|
545
|
+
prepaid_upgrade_star_count?: number;
|
|
546
|
+
can_be_upgraded?: boolean;
|
|
547
|
+
text?: string;
|
|
548
|
+
entities?: MessageEntity[];
|
|
549
|
+
is_private?: boolean;
|
|
550
|
+
}
|
|
551
|
+
interface Gifts {
|
|
552
|
+
gifts: Gift[];
|
|
553
|
+
}
|
|
554
|
+
interface Giveaway {
|
|
555
|
+
chats: Chat[];
|
|
556
|
+
winners_selection_date: number;
|
|
557
|
+
winner_count: number;
|
|
558
|
+
only_new_members?: boolean;
|
|
559
|
+
has_public_winners?: boolean;
|
|
560
|
+
prize_description?: string;
|
|
561
|
+
country_codes?: string[];
|
|
562
|
+
prize_star_count?: number;
|
|
563
|
+
premium_subscription_month_count?: number;
|
|
564
|
+
}
|
|
565
|
+
interface GiveawayCompleted {
|
|
566
|
+
winner_count: number;
|
|
567
|
+
unclaimed_prize_count?: number;
|
|
568
|
+
giveaway_message?: Message;
|
|
569
|
+
is_star_giveaway?: boolean;
|
|
570
|
+
}
|
|
571
|
+
interface GiveawayCreated {
|
|
572
|
+
prize_star_count?: number;
|
|
573
|
+
}
|
|
574
|
+
interface GiveawayWinners {
|
|
575
|
+
chat: Chat;
|
|
576
|
+
giveaway_message_id: number;
|
|
577
|
+
winners_selection_date: number;
|
|
578
|
+
winner_count: number;
|
|
579
|
+
winners: User[];
|
|
580
|
+
additional_chat_count?: number;
|
|
581
|
+
prize_star_count?: number;
|
|
582
|
+
premium_subscription_month_count?: number;
|
|
583
|
+
unclaimed_prize_count?: number;
|
|
584
|
+
only_new_members?: boolean;
|
|
585
|
+
was_refunded?: boolean;
|
|
586
|
+
prize_description?: string;
|
|
587
|
+
}
|
|
588
|
+
interface InaccessibleMessage {
|
|
589
|
+
chat: Chat;
|
|
590
|
+
message_id: number;
|
|
591
|
+
date: number;
|
|
592
|
+
}
|
|
593
|
+
interface InlineKeyboardButton {
|
|
594
|
+
text: string;
|
|
595
|
+
url?: string;
|
|
596
|
+
callback_data?: string;
|
|
597
|
+
web_app?: WebAppInfo;
|
|
598
|
+
login_url?: LoginUrl;
|
|
599
|
+
switch_inline_query?: string;
|
|
600
|
+
switch_inline_query_current_chat?: string;
|
|
601
|
+
switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
|
|
602
|
+
copy_text?: CopyTextButton;
|
|
603
|
+
callback_game?: CallbackGame;
|
|
604
|
+
pay?: boolean;
|
|
605
|
+
}
|
|
606
|
+
interface InlineKeyboardMarkup {
|
|
607
|
+
inline_keyboard: InlineKeyboardButton[][];
|
|
608
|
+
}
|
|
609
|
+
interface InlineQuery {
|
|
610
|
+
id: string;
|
|
611
|
+
from: User;
|
|
612
|
+
query: string;
|
|
613
|
+
offset: string;
|
|
614
|
+
chat_type?: string;
|
|
615
|
+
location?: Location;
|
|
616
|
+
}
|
|
617
|
+
type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice;
|
|
618
|
+
interface InlineQueryResultArticle {
|
|
619
|
+
type: "article";
|
|
620
|
+
id: string;
|
|
621
|
+
title: string;
|
|
622
|
+
input_message_content: InputMessageContent;
|
|
623
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
624
|
+
url?: string;
|
|
625
|
+
description?: string;
|
|
626
|
+
thumbnail_url?: string;
|
|
627
|
+
thumbnail_width?: number;
|
|
628
|
+
thumbnail_height?: number;
|
|
629
|
+
}
|
|
630
|
+
interface InlineQueryResultAudio {
|
|
631
|
+
type: "audio";
|
|
632
|
+
id: string;
|
|
633
|
+
audio_url: string;
|
|
634
|
+
title: string;
|
|
635
|
+
caption?: string;
|
|
636
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
637
|
+
caption_entities?: MessageEntity[];
|
|
638
|
+
performer?: string;
|
|
639
|
+
audio_duration?: number;
|
|
640
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
641
|
+
input_message_content?: InputMessageContent;
|
|
642
|
+
}
|
|
643
|
+
interface InlineQueryResultCachedAudio {
|
|
644
|
+
type: "audio";
|
|
645
|
+
id: string;
|
|
646
|
+
audio_file_id: string;
|
|
647
|
+
caption?: string;
|
|
648
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
649
|
+
caption_entities?: MessageEntity[];
|
|
650
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
651
|
+
input_message_content?: InputMessageContent;
|
|
652
|
+
}
|
|
653
|
+
interface InlineQueryResultCachedDocument {
|
|
654
|
+
type: "document";
|
|
655
|
+
id: string;
|
|
656
|
+
title: string;
|
|
657
|
+
document_file_id: string;
|
|
658
|
+
description?: string;
|
|
659
|
+
caption?: string;
|
|
660
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
661
|
+
caption_entities?: MessageEntity[];
|
|
662
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
663
|
+
input_message_content?: InputMessageContent;
|
|
664
|
+
}
|
|
665
|
+
interface InlineQueryResultCachedGif {
|
|
666
|
+
type: "gif";
|
|
667
|
+
id: string;
|
|
668
|
+
gif_file_id: string;
|
|
669
|
+
title?: string;
|
|
670
|
+
caption?: string;
|
|
671
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
672
|
+
caption_entities?: MessageEntity[];
|
|
673
|
+
show_caption_above_media?: boolean;
|
|
674
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
675
|
+
input_message_content?: InputMessageContent;
|
|
676
|
+
}
|
|
677
|
+
interface InlineQueryResultCachedMpeg4Gif {
|
|
678
|
+
type: "mpeg4_gif";
|
|
679
|
+
id: string;
|
|
680
|
+
mpeg4_file_id: string;
|
|
681
|
+
title?: string;
|
|
682
|
+
caption?: string;
|
|
683
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
684
|
+
caption_entities?: MessageEntity[];
|
|
685
|
+
show_caption_above_media?: boolean;
|
|
686
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
687
|
+
input_message_content?: InputMessageContent;
|
|
688
|
+
}
|
|
689
|
+
interface InlineQueryResultCachedPhoto {
|
|
690
|
+
type: "photo";
|
|
691
|
+
id: string;
|
|
692
|
+
photo_file_id: string;
|
|
693
|
+
title?: string;
|
|
694
|
+
description?: string;
|
|
695
|
+
caption?: string;
|
|
696
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
697
|
+
caption_entities?: MessageEntity[];
|
|
698
|
+
show_caption_above_media?: boolean;
|
|
699
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
700
|
+
input_message_content?: InputMessageContent;
|
|
701
|
+
}
|
|
702
|
+
interface InlineQueryResultCachedSticker {
|
|
703
|
+
type: "sticker";
|
|
704
|
+
id: string;
|
|
705
|
+
sticker_file_id: string;
|
|
706
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
707
|
+
input_message_content?: InputMessageContent;
|
|
708
|
+
}
|
|
709
|
+
interface InlineQueryResultCachedVideo {
|
|
710
|
+
type: "video";
|
|
711
|
+
id: string;
|
|
712
|
+
video_file_id: string;
|
|
713
|
+
title: string;
|
|
714
|
+
description?: string;
|
|
715
|
+
caption?: string;
|
|
716
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
717
|
+
caption_entities?: MessageEntity[];
|
|
718
|
+
show_caption_above_media?: boolean;
|
|
719
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
720
|
+
input_message_content?: InputMessageContent;
|
|
721
|
+
}
|
|
722
|
+
interface InlineQueryResultCachedVoice {
|
|
723
|
+
type: "voice";
|
|
724
|
+
id: string;
|
|
725
|
+
voice_file_id: string;
|
|
726
|
+
title: string;
|
|
727
|
+
caption?: string;
|
|
728
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
729
|
+
caption_entities?: MessageEntity[];
|
|
730
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
731
|
+
input_message_content?: InputMessageContent;
|
|
732
|
+
}
|
|
733
|
+
interface InlineQueryResultContact {
|
|
734
|
+
type: "contact";
|
|
735
|
+
id: string;
|
|
736
|
+
phone_number: string;
|
|
737
|
+
first_name: string;
|
|
738
|
+
last_name?: string;
|
|
739
|
+
vcard?: string;
|
|
740
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
741
|
+
input_message_content?: InputMessageContent;
|
|
742
|
+
thumbnail_url?: string;
|
|
743
|
+
thumbnail_width?: number;
|
|
744
|
+
thumbnail_height?: number;
|
|
745
|
+
}
|
|
746
|
+
interface InlineQueryResultDocument {
|
|
747
|
+
type: "document";
|
|
748
|
+
id: string;
|
|
749
|
+
title: string;
|
|
750
|
+
document_url: string;
|
|
751
|
+
mime_type: string;
|
|
752
|
+
caption?: string;
|
|
753
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
754
|
+
caption_entities?: MessageEntity[];
|
|
755
|
+
description?: string;
|
|
756
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
757
|
+
input_message_content?: InputMessageContent;
|
|
758
|
+
thumbnail_url?: string;
|
|
759
|
+
thumbnail_width?: number;
|
|
760
|
+
thumbnail_height?: number;
|
|
761
|
+
}
|
|
762
|
+
interface InlineQueryResultGame {
|
|
763
|
+
type: "game";
|
|
764
|
+
id: string;
|
|
765
|
+
game_short_name: string;
|
|
766
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
767
|
+
}
|
|
768
|
+
interface InlineQueryResultGif {
|
|
769
|
+
type: "gif";
|
|
770
|
+
id: string;
|
|
771
|
+
gif_url: string;
|
|
772
|
+
thumbnail_url: string;
|
|
773
|
+
gif_width?: number;
|
|
774
|
+
gif_height?: number;
|
|
775
|
+
gif_duration?: number;
|
|
776
|
+
thumbnail_mime_type?: "image/jpeg" | "image/gif" | "video/mp4";
|
|
777
|
+
title?: string;
|
|
778
|
+
caption?: string;
|
|
779
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
780
|
+
caption_entities?: MessageEntity[];
|
|
781
|
+
show_caption_above_media?: boolean;
|
|
782
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
783
|
+
input_message_content?: InputMessageContent;
|
|
784
|
+
}
|
|
785
|
+
interface InlineQueryResultLocation {
|
|
786
|
+
type: "location";
|
|
787
|
+
id: string;
|
|
788
|
+
latitude: number;
|
|
789
|
+
longitude: number;
|
|
790
|
+
title: string;
|
|
791
|
+
horizontal_accuracy?: number;
|
|
792
|
+
live_period?: number;
|
|
793
|
+
heading?: number;
|
|
794
|
+
proximity_alert_radius?: number;
|
|
795
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
796
|
+
input_message_content?: InputMessageContent;
|
|
797
|
+
thumbnail_url?: string;
|
|
798
|
+
thumbnail_width?: number;
|
|
799
|
+
thumbnail_height?: number;
|
|
800
|
+
}
|
|
801
|
+
interface InlineQueryResultMpeg4Gif {
|
|
802
|
+
type: "mpeg4_gif";
|
|
803
|
+
id: string;
|
|
804
|
+
mpeg4_url: string;
|
|
805
|
+
thumbnail_url: string;
|
|
806
|
+
mpeg4_width?: number;
|
|
807
|
+
mpeg4_height?: number;
|
|
808
|
+
mpeg4_duration?: number;
|
|
809
|
+
thumbnail_mime_type?: "image/jpeg" | "image/gif" | "video/mp4";
|
|
810
|
+
title?: string;
|
|
811
|
+
caption?: string;
|
|
812
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
813
|
+
caption_entities?: MessageEntity[];
|
|
814
|
+
show_caption_above_media?: boolean;
|
|
815
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
816
|
+
input_message_content?: InputMessageContent;
|
|
817
|
+
}
|
|
818
|
+
interface InlineQueryResultPhoto {
|
|
819
|
+
type: "photo";
|
|
820
|
+
id: string;
|
|
821
|
+
photo_url: string;
|
|
822
|
+
thumbnail_url: string;
|
|
823
|
+
photo_width?: number;
|
|
824
|
+
photo_height?: number;
|
|
825
|
+
title?: string;
|
|
826
|
+
description?: string;
|
|
827
|
+
caption?: string;
|
|
828
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
829
|
+
caption_entities?: MessageEntity[];
|
|
830
|
+
show_caption_above_media?: boolean;
|
|
831
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
832
|
+
input_message_content?: InputMessageContent;
|
|
833
|
+
}
|
|
834
|
+
interface InlineQueryResultsButton {
|
|
835
|
+
text: string;
|
|
836
|
+
web_app?: WebAppInfo;
|
|
837
|
+
start_parameter?: string;
|
|
838
|
+
}
|
|
839
|
+
interface InlineQueryResultVenue {
|
|
840
|
+
type: "venue";
|
|
841
|
+
id: string;
|
|
842
|
+
latitude: number;
|
|
843
|
+
longitude: number;
|
|
844
|
+
title: string;
|
|
845
|
+
address: string;
|
|
846
|
+
foursquare_id?: string;
|
|
847
|
+
foursquare_type?: string;
|
|
848
|
+
google_place_id?: string;
|
|
849
|
+
google_place_type?: string;
|
|
850
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
851
|
+
input_message_content?: InputMessageContent;
|
|
852
|
+
thumbnail_url?: string;
|
|
853
|
+
thumbnail_width?: number;
|
|
854
|
+
thumbnail_height?: number;
|
|
855
|
+
}
|
|
856
|
+
interface InlineQueryResultVideo {
|
|
857
|
+
type: "video";
|
|
858
|
+
id: string;
|
|
859
|
+
video_url: string;
|
|
860
|
+
mime_type: string;
|
|
861
|
+
thumbnail_url: string;
|
|
862
|
+
title: string;
|
|
863
|
+
caption?: string;
|
|
864
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
865
|
+
caption_entities?: MessageEntity[];
|
|
866
|
+
show_caption_above_media?: boolean;
|
|
867
|
+
video_width?: number;
|
|
868
|
+
video_height?: number;
|
|
869
|
+
video_duration?: number;
|
|
870
|
+
description?: string;
|
|
871
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
872
|
+
input_message_content?: InputMessageContent;
|
|
873
|
+
}
|
|
874
|
+
interface InlineQueryResultVoice {
|
|
875
|
+
type: "voice";
|
|
876
|
+
id: string;
|
|
877
|
+
voice_url: string;
|
|
878
|
+
title: string;
|
|
879
|
+
caption?: string;
|
|
880
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
881
|
+
caption_entities?: MessageEntity[];
|
|
882
|
+
voice_duration?: number;
|
|
883
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
884
|
+
input_message_content?: InputMessageContent;
|
|
885
|
+
}
|
|
886
|
+
interface InputContactMessageContent {
|
|
887
|
+
phone_number: string;
|
|
888
|
+
first_name: string;
|
|
889
|
+
last_name?: string;
|
|
890
|
+
vcard?: string;
|
|
891
|
+
}
|
|
892
|
+
type InputFile = {
|
|
893
|
+
file_content: Uint8Array;
|
|
894
|
+
file_name: string;
|
|
895
|
+
};
|
|
896
|
+
interface InputInvoiceMessageContent {
|
|
897
|
+
title: string;
|
|
898
|
+
description: string;
|
|
899
|
+
payload: string;
|
|
900
|
+
currency: string;
|
|
901
|
+
prices: LabeledPrice[];
|
|
902
|
+
provider_token?: string;
|
|
903
|
+
max_tip_amount?: number;
|
|
904
|
+
suggested_tip_amounts?: number[];
|
|
905
|
+
provider_data?: string;
|
|
906
|
+
photo_url?: string;
|
|
907
|
+
photo_size?: number;
|
|
908
|
+
photo_width?: number;
|
|
909
|
+
photo_height?: number;
|
|
910
|
+
need_name?: boolean;
|
|
911
|
+
need_phone_number?: boolean;
|
|
912
|
+
need_email?: boolean;
|
|
913
|
+
need_shipping_address?: boolean;
|
|
914
|
+
send_phone_number_to_provider?: boolean;
|
|
915
|
+
send_email_to_provider?: boolean;
|
|
916
|
+
is_flexible?: boolean;
|
|
917
|
+
}
|
|
918
|
+
interface InputLocationMessageContent {
|
|
919
|
+
latitude: number;
|
|
920
|
+
longitude: number;
|
|
921
|
+
horizontal_accuracy?: number;
|
|
922
|
+
live_period?: number;
|
|
923
|
+
heading?: number;
|
|
924
|
+
proximity_alert_radius?: number;
|
|
925
|
+
}
|
|
926
|
+
type InputMedia = InputMediaAnimation | InputMediaDocument | InputMediaAudio | InputMediaPhoto | InputMediaVideo;
|
|
927
|
+
interface InputMediaAnimation {
|
|
928
|
+
type: "animation";
|
|
929
|
+
media: string;
|
|
930
|
+
thumbnail?: string;
|
|
931
|
+
caption?: string;
|
|
932
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
933
|
+
caption_entities?: MessageEntity[];
|
|
934
|
+
show_caption_above_media?: boolean;
|
|
935
|
+
width?: number;
|
|
936
|
+
height?: number;
|
|
937
|
+
duration?: number;
|
|
938
|
+
has_spoiler?: boolean;
|
|
939
|
+
}
|
|
940
|
+
interface InputMediaAudio {
|
|
941
|
+
type: "audio";
|
|
942
|
+
media: string;
|
|
943
|
+
thumbnail?: string;
|
|
944
|
+
caption?: string;
|
|
945
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
946
|
+
caption_entities?: MessageEntity[];
|
|
947
|
+
duration?: number;
|
|
948
|
+
performer?: string;
|
|
949
|
+
title?: string;
|
|
950
|
+
}
|
|
951
|
+
interface InputMediaDocument {
|
|
952
|
+
type: "document";
|
|
953
|
+
media: string;
|
|
954
|
+
thumbnail?: string;
|
|
955
|
+
caption?: string;
|
|
956
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
957
|
+
caption_entities?: MessageEntity[];
|
|
958
|
+
disable_content_type_detection?: boolean;
|
|
959
|
+
}
|
|
960
|
+
interface InputMediaPhoto {
|
|
961
|
+
type: "photo";
|
|
962
|
+
media: string;
|
|
963
|
+
caption?: string;
|
|
964
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
965
|
+
caption_entities?: MessageEntity[];
|
|
966
|
+
show_caption_above_media?: boolean;
|
|
967
|
+
has_spoiler?: boolean;
|
|
968
|
+
}
|
|
969
|
+
interface InputMediaVideo {
|
|
970
|
+
type: "video";
|
|
971
|
+
media: string;
|
|
972
|
+
thumbnail?: string;
|
|
973
|
+
cover?: string;
|
|
974
|
+
start_timestamp?: number;
|
|
975
|
+
caption?: string;
|
|
976
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
977
|
+
caption_entities?: MessageEntity[];
|
|
978
|
+
show_caption_above_media?: boolean;
|
|
979
|
+
width?: number;
|
|
980
|
+
height?: number;
|
|
981
|
+
duration?: number;
|
|
982
|
+
supports_streaming?: boolean;
|
|
983
|
+
has_spoiler?: boolean;
|
|
984
|
+
}
|
|
985
|
+
type InputMessageContent = InputTextMessageContent | InputLocationMessageContent | InputVenueMessageContent | InputContactMessageContent | InputInvoiceMessageContent;
|
|
986
|
+
type InputPaidMedia = InputPaidMediaPhoto | InputPaidMediaVideo;
|
|
987
|
+
interface InputPaidMediaPhoto {
|
|
988
|
+
type: "photo";
|
|
989
|
+
media: string;
|
|
990
|
+
}
|
|
991
|
+
interface InputPaidMediaVideo {
|
|
992
|
+
type: "video";
|
|
993
|
+
media: string;
|
|
994
|
+
thumbnail?: string;
|
|
995
|
+
cover?: string;
|
|
996
|
+
start_timestamp?: number;
|
|
997
|
+
width?: number;
|
|
998
|
+
height?: number;
|
|
999
|
+
duration?: number;
|
|
1000
|
+
supports_streaming?: boolean;
|
|
1001
|
+
}
|
|
1002
|
+
interface InputPollOption {
|
|
1003
|
+
text: string;
|
|
1004
|
+
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
1005
|
+
text_entities?: MessageEntity[];
|
|
1006
|
+
}
|
|
1007
|
+
type InputProfilePhoto = InputProfilePhotoStatic | InputProfilePhotoAnimated;
|
|
1008
|
+
interface InputProfilePhotoAnimated {
|
|
1009
|
+
type: "animated";
|
|
1010
|
+
animation: string;
|
|
1011
|
+
main_frame_timestamp?: number;
|
|
1012
|
+
}
|
|
1013
|
+
interface InputProfilePhotoStatic {
|
|
1014
|
+
type: "static";
|
|
1015
|
+
photo: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface InputSticker {
|
|
1018
|
+
sticker: string;
|
|
1019
|
+
format: "static" | "animated" | "video";
|
|
1020
|
+
emoji_list: string[];
|
|
1021
|
+
mask_position?: MaskPosition;
|
|
1022
|
+
keywords?: string[];
|
|
1023
|
+
}
|
|
1024
|
+
type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
|
|
1025
|
+
interface InputStoryContentPhoto {
|
|
1026
|
+
type: "photo";
|
|
1027
|
+
photo: string;
|
|
1028
|
+
}
|
|
1029
|
+
interface InputStoryContentVideo {
|
|
1030
|
+
type: "video";
|
|
1031
|
+
video: string;
|
|
1032
|
+
duration?: number;
|
|
1033
|
+
cover_frame_timestamp?: number;
|
|
1034
|
+
is_animation?: boolean;
|
|
1035
|
+
}
|
|
1036
|
+
interface InputTextMessageContent {
|
|
1037
|
+
message_text: string;
|
|
1038
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1039
|
+
entities?: MessageEntity[];
|
|
1040
|
+
link_preview_options?: LinkPreviewOptions;
|
|
1041
|
+
}
|
|
1042
|
+
interface InputVenueMessageContent {
|
|
1043
|
+
latitude: number;
|
|
1044
|
+
longitude: number;
|
|
1045
|
+
title: string;
|
|
1046
|
+
address: string;
|
|
1047
|
+
foursquare_id?: string;
|
|
1048
|
+
foursquare_type?: string;
|
|
1049
|
+
google_place_id?: string;
|
|
1050
|
+
google_place_type?: string;
|
|
1051
|
+
}
|
|
1052
|
+
interface Invoice {
|
|
1053
|
+
title: string;
|
|
1054
|
+
description: string;
|
|
1055
|
+
start_parameter: string;
|
|
1056
|
+
currency: string;
|
|
1057
|
+
total_amount: number;
|
|
1058
|
+
}
|
|
1059
|
+
interface KeyboardButton {
|
|
1060
|
+
text: string;
|
|
1061
|
+
request_users?: KeyboardButtonRequestUsers;
|
|
1062
|
+
request_chat?: KeyboardButtonRequestChat;
|
|
1063
|
+
request_contact?: boolean;
|
|
1064
|
+
request_location?: boolean;
|
|
1065
|
+
request_poll?: KeyboardButtonPollType;
|
|
1066
|
+
web_app?: WebAppInfo;
|
|
1067
|
+
}
|
|
1068
|
+
interface KeyboardButtonPollType {
|
|
1069
|
+
type?: string;
|
|
1070
|
+
}
|
|
1071
|
+
interface KeyboardButtonRequestChat {
|
|
1072
|
+
request_id: number;
|
|
1073
|
+
chat_is_channel: boolean;
|
|
1074
|
+
chat_is_forum?: boolean;
|
|
1075
|
+
chat_has_username?: boolean;
|
|
1076
|
+
chat_is_created?: boolean;
|
|
1077
|
+
user_administrator_rights?: ChatAdministratorRights;
|
|
1078
|
+
bot_administrator_rights?: ChatAdministratorRights;
|
|
1079
|
+
bot_is_member?: boolean;
|
|
1080
|
+
request_title?: boolean;
|
|
1081
|
+
request_username?: boolean;
|
|
1082
|
+
request_photo?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
interface KeyboardButtonRequestUsers {
|
|
1085
|
+
request_id: number;
|
|
1086
|
+
user_is_bot?: boolean;
|
|
1087
|
+
user_is_premium?: boolean;
|
|
1088
|
+
max_quantity?: number;
|
|
1089
|
+
request_name?: boolean;
|
|
1090
|
+
request_username?: boolean;
|
|
1091
|
+
request_photo?: boolean;
|
|
1092
|
+
}
|
|
1093
|
+
interface LabeledPrice {
|
|
1094
|
+
label: string;
|
|
1095
|
+
amount: number;
|
|
1096
|
+
}
|
|
1097
|
+
interface LinkPreviewOptions {
|
|
1098
|
+
is_disabled?: boolean;
|
|
1099
|
+
url?: string;
|
|
1100
|
+
prefer_small_media?: boolean;
|
|
1101
|
+
prefer_large_media?: boolean;
|
|
1102
|
+
show_above_text?: boolean;
|
|
1103
|
+
}
|
|
1104
|
+
interface Location {
|
|
1105
|
+
latitude: number;
|
|
1106
|
+
longitude: number;
|
|
1107
|
+
horizontal_accuracy?: number;
|
|
1108
|
+
live_period?: number;
|
|
1109
|
+
heading?: number;
|
|
1110
|
+
proximity_alert_radius?: number;
|
|
1111
|
+
}
|
|
1112
|
+
interface LocationAddress {
|
|
1113
|
+
country_code: string;
|
|
1114
|
+
state?: string;
|
|
1115
|
+
city?: string;
|
|
1116
|
+
street?: string;
|
|
1117
|
+
}
|
|
1118
|
+
interface LoginUrl {
|
|
1119
|
+
url: string;
|
|
1120
|
+
forward_text?: string;
|
|
1121
|
+
bot_username?: string;
|
|
1122
|
+
request_write_access?: boolean;
|
|
1123
|
+
}
|
|
1124
|
+
interface MaskPosition {
|
|
1125
|
+
point: string;
|
|
1126
|
+
x_shift: number;
|
|
1127
|
+
y_shift: number;
|
|
1128
|
+
scale: number;
|
|
1129
|
+
}
|
|
1130
|
+
type MaybeInaccessibleMessage = Message | InaccessibleMessage;
|
|
1131
|
+
type MenuButton = MenuButtonCommands | MenuButtonWebApp | MenuButtonDefault;
|
|
1132
|
+
interface MenuButtonCommands {
|
|
1133
|
+
type: "commands";
|
|
1134
|
+
}
|
|
1135
|
+
interface MenuButtonDefault {
|
|
1136
|
+
type: "default";
|
|
1137
|
+
}
|
|
1138
|
+
interface MenuButtonWebApp {
|
|
1139
|
+
type: "web_app";
|
|
1140
|
+
text: string;
|
|
1141
|
+
web_app: WebAppInfo;
|
|
1142
|
+
}
|
|
1143
|
+
interface Message {
|
|
1144
|
+
message_id: number;
|
|
1145
|
+
date: number;
|
|
1146
|
+
chat: Chat;
|
|
1147
|
+
message_thread_id?: number;
|
|
1148
|
+
from?: User;
|
|
1149
|
+
sender_chat?: Chat;
|
|
1150
|
+
sender_boost_count?: number;
|
|
1151
|
+
sender_business_bot?: User;
|
|
1152
|
+
business_connection_id?: string;
|
|
1153
|
+
forward_origin?: MessageOrigin;
|
|
1154
|
+
is_topic_message?: boolean;
|
|
1155
|
+
is_automatic_forward?: boolean;
|
|
1156
|
+
reply_to_message?: Message;
|
|
1157
|
+
external_reply?: ExternalReplyInfo;
|
|
1158
|
+
quote?: TextQuote;
|
|
1159
|
+
reply_to_story?: Story;
|
|
1160
|
+
via_bot?: User;
|
|
1161
|
+
edit_date?: number;
|
|
1162
|
+
has_protected_content?: boolean;
|
|
1163
|
+
is_from_offline?: boolean;
|
|
1164
|
+
media_group_id?: string;
|
|
1165
|
+
author_signature?: string;
|
|
1166
|
+
paid_star_count?: number;
|
|
1167
|
+
text?: string;
|
|
1168
|
+
entities?: MessageEntity[];
|
|
1169
|
+
link_preview_options?: LinkPreviewOptions;
|
|
1170
|
+
effect_id?: string;
|
|
1171
|
+
animation?: Animation;
|
|
1172
|
+
audio?: Audio;
|
|
1173
|
+
document?: Document;
|
|
1174
|
+
paid_media?: PaidMediaInfo;
|
|
1175
|
+
photo?: PhotoSize[];
|
|
1176
|
+
sticker?: Sticker;
|
|
1177
|
+
story?: Story;
|
|
1178
|
+
video?: Video;
|
|
1179
|
+
video_note?: VideoNote;
|
|
1180
|
+
voice?: Voice;
|
|
1181
|
+
caption?: string;
|
|
1182
|
+
caption_entities?: MessageEntity[];
|
|
1183
|
+
show_caption_above_media?: boolean;
|
|
1184
|
+
has_media_spoiler?: boolean;
|
|
1185
|
+
contact?: Contact;
|
|
1186
|
+
dice?: Dice;
|
|
1187
|
+
game?: Game;
|
|
1188
|
+
poll?: Poll;
|
|
1189
|
+
venue?: Venue;
|
|
1190
|
+
location?: Location;
|
|
1191
|
+
new_chat_members?: User[];
|
|
1192
|
+
left_chat_member?: User;
|
|
1193
|
+
new_chat_title?: string;
|
|
1194
|
+
new_chat_photo?: PhotoSize[];
|
|
1195
|
+
delete_chat_photo?: boolean;
|
|
1196
|
+
group_chat_created?: boolean;
|
|
1197
|
+
supergroup_chat_created?: boolean;
|
|
1198
|
+
channel_chat_created?: boolean;
|
|
1199
|
+
message_auto_delete_timer_changed?: MessageAutoDeleteTimerChanged;
|
|
1200
|
+
migrate_to_chat_id?: number;
|
|
1201
|
+
migrate_from_chat_id?: number;
|
|
1202
|
+
pinned_message?: MaybeInaccessibleMessage;
|
|
1203
|
+
invoice?: Invoice;
|
|
1204
|
+
successful_payment?: SuccessfulPayment;
|
|
1205
|
+
refunded_payment?: RefundedPayment;
|
|
1206
|
+
users_shared?: UsersShared;
|
|
1207
|
+
chat_shared?: ChatShared;
|
|
1208
|
+
gift?: GiftInfo;
|
|
1209
|
+
unique_gift?: UniqueGiftInfo;
|
|
1210
|
+
connected_website?: string;
|
|
1211
|
+
write_access_allowed?: WriteAccessAllowed;
|
|
1212
|
+
passport_data?: PassportData;
|
|
1213
|
+
proximity_alert_triggered?: ProximityAlertTriggered;
|
|
1214
|
+
boost_added?: ChatBoostAdded;
|
|
1215
|
+
chat_background_set?: ChatBackground;
|
|
1216
|
+
forum_topic_created?: ForumTopicCreated;
|
|
1217
|
+
forum_topic_edited?: ForumTopicEdited;
|
|
1218
|
+
forum_topic_closed?: ForumTopicClosed;
|
|
1219
|
+
forum_topic_reopened?: ForumTopicReopened;
|
|
1220
|
+
general_forum_topic_hidden?: GeneralForumTopicHidden;
|
|
1221
|
+
general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
|
|
1222
|
+
giveaway_created?: GiveawayCreated;
|
|
1223
|
+
giveaway?: Giveaway;
|
|
1224
|
+
giveaway_winners?: GiveawayWinners;
|
|
1225
|
+
giveaway_completed?: GiveawayCompleted;
|
|
1226
|
+
paid_message_price_changed?: PaidMessagePriceChanged;
|
|
1227
|
+
video_chat_scheduled?: VideoChatScheduled;
|
|
1228
|
+
video_chat_started?: VideoChatStarted;
|
|
1229
|
+
video_chat_ended?: VideoChatEnded;
|
|
1230
|
+
video_chat_participants_invited?: VideoChatParticipantsInvited;
|
|
1231
|
+
web_app_data?: WebAppData;
|
|
1232
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1233
|
+
}
|
|
1234
|
+
interface MessageAutoDeleteTimerChanged {
|
|
1235
|
+
message_auto_delete_time: number;
|
|
1236
|
+
}
|
|
1237
|
+
interface MessageEntity {
|
|
1238
|
+
type: "mention" | "hashtag" | "cashtag" | "bot_command" | "url" | "email" | "phone_number" | "bold" | "italic" | "underline" | "strikethrough" | "spoiler" | "blockquote" | "expandable_blockquote" | "code" | "pre" | "text_link" | "text_mention" | "custom_emoji";
|
|
1239
|
+
offset: number;
|
|
1240
|
+
length: number;
|
|
1241
|
+
url?: string;
|
|
1242
|
+
user?: User;
|
|
1243
|
+
language?: string;
|
|
1244
|
+
custom_emoji_id?: string;
|
|
1245
|
+
}
|
|
1246
|
+
interface MessageId {
|
|
1247
|
+
message_id: number;
|
|
1248
|
+
}
|
|
1249
|
+
type MessageOrigin = MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel;
|
|
1250
|
+
interface MessageOriginChannel {
|
|
1251
|
+
type: "channel";
|
|
1252
|
+
date: number;
|
|
1253
|
+
chat: Chat;
|
|
1254
|
+
message_id: number;
|
|
1255
|
+
author_signature?: string;
|
|
1256
|
+
}
|
|
1257
|
+
interface MessageOriginChat {
|
|
1258
|
+
type: "chat";
|
|
1259
|
+
date: number;
|
|
1260
|
+
sender_chat: Chat;
|
|
1261
|
+
author_signature?: string;
|
|
1262
|
+
}
|
|
1263
|
+
interface MessageOriginHiddenUser {
|
|
1264
|
+
type: "hidden_user";
|
|
1265
|
+
date: number;
|
|
1266
|
+
sender_user_name: string;
|
|
1267
|
+
}
|
|
1268
|
+
interface MessageOriginUser {
|
|
1269
|
+
type: "user";
|
|
1270
|
+
date: number;
|
|
1271
|
+
sender_user: User;
|
|
1272
|
+
}
|
|
1273
|
+
interface MessageReactionCountUpdated {
|
|
1274
|
+
chat: Chat;
|
|
1275
|
+
message_id: number;
|
|
1276
|
+
date: number;
|
|
1277
|
+
reactions: ReactionCount[];
|
|
1278
|
+
}
|
|
1279
|
+
interface MessageReactionUpdated {
|
|
1280
|
+
chat: Chat;
|
|
1281
|
+
message_id: number;
|
|
1282
|
+
date: number;
|
|
1283
|
+
old_reaction: ReactionType[];
|
|
1284
|
+
new_reaction: ReactionType[];
|
|
1285
|
+
user?: User;
|
|
1286
|
+
actor_chat?: Chat;
|
|
1287
|
+
}
|
|
1288
|
+
interface OrderInfo {
|
|
1289
|
+
name?: string;
|
|
1290
|
+
phone_number?: string;
|
|
1291
|
+
email?: string;
|
|
1292
|
+
shipping_address?: ShippingAddress;
|
|
1293
|
+
}
|
|
1294
|
+
type OwnedGift = OwnedGiftRegular | OwnedGiftUnique;
|
|
1295
|
+
interface OwnedGiftRegular {
|
|
1296
|
+
type: "regular";
|
|
1297
|
+
gift: Gift;
|
|
1298
|
+
send_date: number;
|
|
1299
|
+
owned_gift_id?: string;
|
|
1300
|
+
sender_user?: User;
|
|
1301
|
+
text?: string;
|
|
1302
|
+
entities?: MessageEntity[];
|
|
1303
|
+
is_private?: boolean;
|
|
1304
|
+
is_saved?: boolean;
|
|
1305
|
+
can_be_upgraded?: boolean;
|
|
1306
|
+
was_refunded?: boolean;
|
|
1307
|
+
convert_star_count?: number;
|
|
1308
|
+
prepaid_upgrade_star_count?: number;
|
|
1309
|
+
}
|
|
1310
|
+
interface OwnedGifts {
|
|
1311
|
+
total_count: number;
|
|
1312
|
+
gifts: OwnedGift[];
|
|
1313
|
+
next_offset?: string;
|
|
1314
|
+
}
|
|
1315
|
+
interface OwnedGiftUnique {
|
|
1316
|
+
type: "unique";
|
|
1317
|
+
gift: UniqueGift;
|
|
1318
|
+
send_date: number;
|
|
1319
|
+
owned_gift_id?: string;
|
|
1320
|
+
sender_user?: User;
|
|
1321
|
+
is_saved?: boolean;
|
|
1322
|
+
can_be_transferred?: boolean;
|
|
1323
|
+
transfer_star_count?: number;
|
|
1324
|
+
}
|
|
1325
|
+
type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo;
|
|
1326
|
+
interface PaidMediaInfo {
|
|
1327
|
+
star_count: number;
|
|
1328
|
+
paid_media: PaidMedia[];
|
|
1329
|
+
}
|
|
1330
|
+
interface PaidMediaPhoto {
|
|
1331
|
+
type: "photo";
|
|
1332
|
+
photo: PhotoSize[];
|
|
1333
|
+
}
|
|
1334
|
+
interface PaidMediaPreview {
|
|
1335
|
+
type: "preview";
|
|
1336
|
+
width?: number;
|
|
1337
|
+
height?: number;
|
|
1338
|
+
duration?: number;
|
|
1339
|
+
}
|
|
1340
|
+
interface PaidMediaPurchased {
|
|
1341
|
+
from: User;
|
|
1342
|
+
paid_media_payload: string;
|
|
1343
|
+
}
|
|
1344
|
+
interface PaidMediaVideo {
|
|
1345
|
+
type: "video";
|
|
1346
|
+
video: Video;
|
|
1347
|
+
}
|
|
1348
|
+
interface PaidMessagePriceChanged {
|
|
1349
|
+
paid_message_star_count: number;
|
|
1350
|
+
}
|
|
1351
|
+
interface PassportData {
|
|
1352
|
+
data: EncryptedPassportElement[];
|
|
1353
|
+
credentials: EncryptedCredentials;
|
|
1354
|
+
}
|
|
1355
|
+
type PassportElementError = PassportElementErrorDataField | PassportElementErrorFrontSide | PassportElementErrorReverseSide | PassportElementErrorSelfie | PassportElementErrorFile | PassportElementErrorFiles | PassportElementErrorTranslationFile | PassportElementErrorTranslationFiles | PassportElementErrorUnspecified;
|
|
1356
|
+
interface PassportElementErrorDataField {
|
|
1357
|
+
source: "data";
|
|
1358
|
+
type: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address";
|
|
1359
|
+
field_name: string;
|
|
1360
|
+
data_hash: string;
|
|
1361
|
+
message: string;
|
|
1362
|
+
}
|
|
1363
|
+
interface PassportElementErrorFile {
|
|
1364
|
+
source: "file";
|
|
1365
|
+
type: "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1366
|
+
file_hash: string;
|
|
1367
|
+
message: string;
|
|
1368
|
+
}
|
|
1369
|
+
interface PassportElementErrorFiles {
|
|
1370
|
+
source: "files";
|
|
1371
|
+
type: "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1372
|
+
file_hashes: string[];
|
|
1373
|
+
message: string;
|
|
1374
|
+
}
|
|
1375
|
+
interface PassportElementErrorFrontSide {
|
|
1376
|
+
source: "front_side";
|
|
1377
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
1378
|
+
file_hash: string;
|
|
1379
|
+
message: string;
|
|
1380
|
+
}
|
|
1381
|
+
interface PassportElementErrorReverseSide {
|
|
1382
|
+
source: "reverse_side";
|
|
1383
|
+
type: "driver_license" | "identity_card";
|
|
1384
|
+
file_hash: string;
|
|
1385
|
+
message: string;
|
|
1386
|
+
}
|
|
1387
|
+
interface PassportElementErrorSelfie {
|
|
1388
|
+
source: "selfie";
|
|
1389
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
1390
|
+
file_hash: string;
|
|
1391
|
+
message: string;
|
|
1392
|
+
}
|
|
1393
|
+
interface PassportElementErrorTranslationFile {
|
|
1394
|
+
source: "translation_file";
|
|
1395
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport" | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1396
|
+
file_hash: string;
|
|
1397
|
+
message: string;
|
|
1398
|
+
}
|
|
1399
|
+
interface PassportElementErrorTranslationFiles {
|
|
1400
|
+
source: "translation_files";
|
|
1401
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport" | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1402
|
+
file_hashes: string[];
|
|
1403
|
+
message: string;
|
|
1404
|
+
}
|
|
1405
|
+
interface PassportElementErrorUnspecified {
|
|
1406
|
+
source: "unspecified";
|
|
1407
|
+
type: string;
|
|
1408
|
+
element_hash: string;
|
|
1409
|
+
message: string;
|
|
1410
|
+
}
|
|
1411
|
+
interface PassportFile {
|
|
1412
|
+
file_id: string;
|
|
1413
|
+
file_unique_id: string;
|
|
1414
|
+
file_size: number;
|
|
1415
|
+
file_date: number;
|
|
1416
|
+
}
|
|
1417
|
+
interface PhotoSize {
|
|
1418
|
+
file_id: string;
|
|
1419
|
+
file_unique_id: string;
|
|
1420
|
+
width: number;
|
|
1421
|
+
height: number;
|
|
1422
|
+
file_size?: number;
|
|
1423
|
+
}
|
|
1424
|
+
interface Poll {
|
|
1425
|
+
id: string;
|
|
1426
|
+
question: string;
|
|
1427
|
+
options: PollOption[];
|
|
1428
|
+
total_voter_count: number;
|
|
1429
|
+
is_closed: boolean;
|
|
1430
|
+
is_anonymous: boolean;
|
|
1431
|
+
type: "regular" | "quiz";
|
|
1432
|
+
allows_multiple_answers: boolean;
|
|
1433
|
+
question_entities?: MessageEntity[];
|
|
1434
|
+
correct_option_id?: number;
|
|
1435
|
+
explanation?: string;
|
|
1436
|
+
explanation_entities?: MessageEntity[];
|
|
1437
|
+
open_period?: number;
|
|
1438
|
+
close_date?: number;
|
|
1439
|
+
}
|
|
1440
|
+
interface PollAnswer {
|
|
1441
|
+
poll_id: string;
|
|
1442
|
+
option_ids: number[];
|
|
1443
|
+
voter_chat?: Chat;
|
|
1444
|
+
user?: User;
|
|
1445
|
+
}
|
|
1446
|
+
interface PollOption {
|
|
1447
|
+
text: string;
|
|
1448
|
+
voter_count: number;
|
|
1449
|
+
text_entities?: MessageEntity[];
|
|
1450
|
+
}
|
|
1451
|
+
interface PreCheckoutQuery {
|
|
1452
|
+
id: string;
|
|
1453
|
+
from: User;
|
|
1454
|
+
currency: string;
|
|
1455
|
+
total_amount: number;
|
|
1456
|
+
invoice_payload: string;
|
|
1457
|
+
shipping_option_id?: string;
|
|
1458
|
+
order_info?: OrderInfo;
|
|
1459
|
+
}
|
|
1460
|
+
interface PreparedInlineMessage {
|
|
1461
|
+
id: string;
|
|
1462
|
+
expiration_date: number;
|
|
1463
|
+
}
|
|
1464
|
+
interface ProximityAlertTriggered {
|
|
1465
|
+
traveler: User;
|
|
1466
|
+
watcher: User;
|
|
1467
|
+
distance: number;
|
|
1468
|
+
}
|
|
1469
|
+
interface ReactionCount {
|
|
1470
|
+
type: ReactionType;
|
|
1471
|
+
total_count: number;
|
|
1472
|
+
}
|
|
1473
|
+
type ReactionType = ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid;
|
|
1474
|
+
interface ReactionTypeCustomEmoji {
|
|
1475
|
+
type: "custom_emoji";
|
|
1476
|
+
custom_emoji_id: string;
|
|
1477
|
+
}
|
|
1478
|
+
interface ReactionTypeEmoji {
|
|
1479
|
+
type: "emoji";
|
|
1480
|
+
emoji: "👍" | "👎" | "❤" | "🔥" | "🥰" | "👏" | "😁" | "🤔" | "🤯" | "😱" | "🤬" | "😢" | "🎉" | "🤩" | "🤮" | "💩" | "🙏" | "👌" | "🕊" | "🤡" | "🥱" | "🥴" | "😍" | "🐳" | "❤🔥" | "🌚" | "🌭" | "💯" | "🤣" | "⚡" | "🍌" | "🏆" | "💔" | "🤨" | "😐" | "🍓" | "🍾" | "💋" | "🖕" | "😈" | "😴" | "😭" | "🤓" | "👻" | "👨💻" | "👀" | "🎃" | "🙈" | "😇" | "😨" | "🤝" | "✍" | "🤗" | "🫡" | "🎅" | "🎄" | "☃" | "💅" | "🤪" | "🗿" | "🆒" | "💘" | "🙉" | "🦄" | "😘" | "💊" | "🙊" | "😎" | "👾" | "🤷♂" | "🤷" | "🤷♀" | "😡";
|
|
1481
|
+
}
|
|
1482
|
+
interface ReactionTypePaid {
|
|
1483
|
+
type: "paid";
|
|
1484
|
+
}
|
|
1485
|
+
interface RefundedPayment {
|
|
1486
|
+
currency: "XTR";
|
|
1487
|
+
total_amount: number;
|
|
1488
|
+
invoice_payload: string;
|
|
1489
|
+
telegram_payment_charge_id: string;
|
|
1490
|
+
provider_payment_charge_id?: string;
|
|
1491
|
+
}
|
|
1492
|
+
interface ReplyKeyboardMarkup {
|
|
1493
|
+
keyboard: KeyboardButton[][];
|
|
1494
|
+
is_persistent?: boolean;
|
|
1495
|
+
resize_keyboard?: boolean;
|
|
1496
|
+
one_time_keyboard?: boolean;
|
|
1497
|
+
input_field_placeholder?: string;
|
|
1498
|
+
selective?: boolean;
|
|
1499
|
+
}
|
|
1500
|
+
interface ReplyKeyboardRemove {
|
|
1501
|
+
remove_keyboard: boolean;
|
|
1502
|
+
selective?: boolean;
|
|
1503
|
+
}
|
|
1504
|
+
interface ReplyParameters {
|
|
1505
|
+
message_id: number;
|
|
1506
|
+
chat_id?: number | string;
|
|
1507
|
+
allow_sending_without_reply?: boolean;
|
|
1508
|
+
quote?: string;
|
|
1509
|
+
quote_parse_mode?: "HTML" | "MarkdownV2";
|
|
1510
|
+
quote_entities?: MessageEntity[];
|
|
1511
|
+
quote_position?: number;
|
|
1512
|
+
}
|
|
1513
|
+
interface ResponseParameters {
|
|
1514
|
+
migrate_to_chat_id?: number;
|
|
1515
|
+
retry_after?: number;
|
|
1516
|
+
}
|
|
1517
|
+
type RevenueWithdrawalState = RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed;
|
|
1518
|
+
interface RevenueWithdrawalStateFailed {
|
|
1519
|
+
type: "failed";
|
|
1520
|
+
}
|
|
1521
|
+
interface RevenueWithdrawalStatePending {
|
|
1522
|
+
type: "pending";
|
|
1523
|
+
}
|
|
1524
|
+
interface RevenueWithdrawalStateSucceeded {
|
|
1525
|
+
type: "succeeded";
|
|
1526
|
+
date: number;
|
|
1527
|
+
url: string;
|
|
1528
|
+
}
|
|
1529
|
+
interface SentWebAppMessage {
|
|
1530
|
+
inline_message_id?: string;
|
|
1531
|
+
}
|
|
1532
|
+
interface SharedUser {
|
|
1533
|
+
user_id: number;
|
|
1534
|
+
first_name?: string;
|
|
1535
|
+
last_name?: string;
|
|
1536
|
+
username?: string;
|
|
1537
|
+
photo?: PhotoSize[];
|
|
1538
|
+
}
|
|
1539
|
+
interface ShippingAddress {
|
|
1540
|
+
country_code: string;
|
|
1541
|
+
state: string;
|
|
1542
|
+
city: string;
|
|
1543
|
+
street_line1: string;
|
|
1544
|
+
street_line2: string;
|
|
1545
|
+
post_code: string;
|
|
1546
|
+
}
|
|
1547
|
+
interface ShippingOption {
|
|
1548
|
+
id: string;
|
|
1549
|
+
title: string;
|
|
1550
|
+
prices: LabeledPrice[];
|
|
1551
|
+
}
|
|
1552
|
+
interface ShippingQuery {
|
|
1553
|
+
id: string;
|
|
1554
|
+
from: User;
|
|
1555
|
+
invoice_payload: string;
|
|
1556
|
+
shipping_address: ShippingAddress;
|
|
1557
|
+
}
|
|
1558
|
+
interface StarAmount {
|
|
1559
|
+
amount: number;
|
|
1560
|
+
nanostar_amount?: number;
|
|
1561
|
+
}
|
|
1562
|
+
interface StarTransaction {
|
|
1563
|
+
id: string;
|
|
1564
|
+
amount: number;
|
|
1565
|
+
date: number;
|
|
1566
|
+
nanostar_amount?: number;
|
|
1567
|
+
source?: TransactionPartner;
|
|
1568
|
+
receiver?: TransactionPartner;
|
|
1569
|
+
}
|
|
1570
|
+
interface StarTransactions {
|
|
1571
|
+
transactions: StarTransaction[];
|
|
1572
|
+
}
|
|
1573
|
+
interface Sticker {
|
|
1574
|
+
file_id: string;
|
|
1575
|
+
file_unique_id: string;
|
|
1576
|
+
type: "regular" | "mask" | "custom_emoji";
|
|
1577
|
+
width: number;
|
|
1578
|
+
height: number;
|
|
1579
|
+
is_animated: boolean;
|
|
1580
|
+
is_video: boolean;
|
|
1581
|
+
thumbnail?: PhotoSize;
|
|
1582
|
+
emoji?: string;
|
|
1583
|
+
set_name?: string;
|
|
1584
|
+
premium_animation?: File;
|
|
1585
|
+
mask_position?: MaskPosition;
|
|
1586
|
+
custom_emoji_id?: string;
|
|
1587
|
+
needs_repainting?: boolean;
|
|
1588
|
+
file_size?: number;
|
|
1589
|
+
}
|
|
1590
|
+
interface StickerSet {
|
|
1591
|
+
name: string;
|
|
1592
|
+
title: string;
|
|
1593
|
+
sticker_type: "regular" | "mask" | "custom_emoji";
|
|
1594
|
+
stickers: Sticker[];
|
|
1595
|
+
thumbnail?: PhotoSize;
|
|
1596
|
+
}
|
|
1597
|
+
interface Story {
|
|
1598
|
+
chat: Chat;
|
|
1599
|
+
id: number;
|
|
1600
|
+
}
|
|
1601
|
+
interface StoryArea {
|
|
1602
|
+
position: StoryAreaPosition;
|
|
1603
|
+
type: StoryAreaType;
|
|
1604
|
+
}
|
|
1605
|
+
interface StoryAreaPosition {
|
|
1606
|
+
x_percentage: number;
|
|
1607
|
+
y_percentage: number;
|
|
1608
|
+
width_percentage: number;
|
|
1609
|
+
height_percentage: number;
|
|
1610
|
+
rotation_angle: number;
|
|
1611
|
+
corner_radius_percentage: number;
|
|
1612
|
+
}
|
|
1613
|
+
type StoryAreaType = StoryAreaTypeLocation | StoryAreaTypeSuggestedReaction | StoryAreaTypeLink | StoryAreaTypeWeather | StoryAreaTypeUniqueGift;
|
|
1614
|
+
interface StoryAreaTypeLink {
|
|
1615
|
+
type: "link";
|
|
1616
|
+
url: string;
|
|
1617
|
+
}
|
|
1618
|
+
interface StoryAreaTypeLocation {
|
|
1619
|
+
type: "location";
|
|
1620
|
+
latitude: number;
|
|
1621
|
+
longitude: number;
|
|
1622
|
+
address?: LocationAddress;
|
|
1623
|
+
}
|
|
1624
|
+
interface StoryAreaTypeSuggestedReaction {
|
|
1625
|
+
type: "suggested_reaction";
|
|
1626
|
+
reaction_type: ReactionType;
|
|
1627
|
+
is_dark?: boolean;
|
|
1628
|
+
is_flipped?: boolean;
|
|
1629
|
+
}
|
|
1630
|
+
interface StoryAreaTypeUniqueGift {
|
|
1631
|
+
type: "unique_gift";
|
|
1632
|
+
name: string;
|
|
1633
|
+
}
|
|
1634
|
+
interface StoryAreaTypeWeather {
|
|
1635
|
+
type: "weather";
|
|
1636
|
+
temperature: number;
|
|
1637
|
+
emoji: string;
|
|
1638
|
+
background_color: number;
|
|
1639
|
+
}
|
|
1640
|
+
interface SuccessfulPayment {
|
|
1641
|
+
currency: string;
|
|
1642
|
+
total_amount: number;
|
|
1643
|
+
invoice_payload: string;
|
|
1644
|
+
telegram_payment_charge_id: string;
|
|
1645
|
+
provider_payment_charge_id: string;
|
|
1646
|
+
subscription_expiration_date?: number;
|
|
1647
|
+
is_recurring?: boolean;
|
|
1648
|
+
is_first_recurring?: boolean;
|
|
1649
|
+
shipping_option_id?: string;
|
|
1650
|
+
order_info?: OrderInfo;
|
|
1651
|
+
}
|
|
1652
|
+
interface SwitchInlineQueryChosenChat {
|
|
1653
|
+
query?: string;
|
|
1654
|
+
allow_user_chats?: boolean;
|
|
1655
|
+
allow_bot_chats?: boolean;
|
|
1656
|
+
allow_group_chats?: boolean;
|
|
1657
|
+
allow_channel_chats?: boolean;
|
|
1658
|
+
}
|
|
1659
|
+
interface TextQuote {
|
|
1660
|
+
text: string;
|
|
1661
|
+
position: number;
|
|
1662
|
+
entities?: MessageEntity[];
|
|
1663
|
+
is_manual?: boolean;
|
|
1664
|
+
}
|
|
1665
|
+
type TransactionPartner = TransactionPartnerUser | TransactionPartnerChat | TransactionPartnerAffiliateProgram | TransactionPartnerFragment | TransactionPartnerTelegramAds | TransactionPartnerTelegramApi | TransactionPartnerOther;
|
|
1666
|
+
interface TransactionPartnerAffiliateProgram {
|
|
1667
|
+
type: "affiliate_program";
|
|
1668
|
+
commission_per_mille: number;
|
|
1669
|
+
sponsor_user?: User;
|
|
1670
|
+
}
|
|
1671
|
+
interface TransactionPartnerChat {
|
|
1672
|
+
type: "chat";
|
|
1673
|
+
chat: Chat;
|
|
1674
|
+
gift?: Gift;
|
|
1675
|
+
}
|
|
1676
|
+
interface TransactionPartnerFragment {
|
|
1677
|
+
type: "fragment";
|
|
1678
|
+
withdrawal_state?: RevenueWithdrawalState;
|
|
1679
|
+
}
|
|
1680
|
+
interface TransactionPartnerOther {
|
|
1681
|
+
type: "other";
|
|
1682
|
+
}
|
|
1683
|
+
interface TransactionPartnerTelegramAds {
|
|
1684
|
+
type: "telegram_ads";
|
|
1685
|
+
}
|
|
1686
|
+
interface TransactionPartnerTelegramApi {
|
|
1687
|
+
type: "telegram_api";
|
|
1688
|
+
request_count: number;
|
|
1689
|
+
}
|
|
1690
|
+
interface TransactionPartnerUser {
|
|
1691
|
+
type: "user";
|
|
1692
|
+
transaction_type: "invoice_payment" | "paid_media_payment" | "gift_purchase" | "premium_purchase" | "business_account_transfer";
|
|
1693
|
+
user: User;
|
|
1694
|
+
affiliate?: AffiliateInfo;
|
|
1695
|
+
invoice_payload?: string;
|
|
1696
|
+
subscription_period?: number;
|
|
1697
|
+
paid_media?: PaidMedia[];
|
|
1698
|
+
paid_media_payload?: string;
|
|
1699
|
+
gift?: Gift;
|
|
1700
|
+
premium_subscription_duration?: number;
|
|
1701
|
+
}
|
|
1702
|
+
interface UniqueGift {
|
|
1703
|
+
base_name: string;
|
|
1704
|
+
name: string;
|
|
1705
|
+
number: number;
|
|
1706
|
+
model: UniqueGiftModel;
|
|
1707
|
+
symbol: UniqueGiftSymbol;
|
|
1708
|
+
backdrop: UniqueGiftBackdrop;
|
|
1709
|
+
}
|
|
1710
|
+
interface UniqueGiftBackdrop {
|
|
1711
|
+
name: string;
|
|
1712
|
+
colors: UniqueGiftBackdropColors;
|
|
1713
|
+
rarity_per_mille: number;
|
|
1714
|
+
}
|
|
1715
|
+
interface UniqueGiftBackdropColors {
|
|
1716
|
+
center_color: number;
|
|
1717
|
+
edge_color: number;
|
|
1718
|
+
symbol_color: number;
|
|
1719
|
+
text_color: number;
|
|
1720
|
+
}
|
|
1721
|
+
interface UniqueGiftInfo {
|
|
1722
|
+
gift: UniqueGift;
|
|
1723
|
+
origin: string;
|
|
1724
|
+
owned_gift_id?: string;
|
|
1725
|
+
transfer_star_count?: number;
|
|
1726
|
+
}
|
|
1727
|
+
interface UniqueGiftModel {
|
|
1728
|
+
name: string;
|
|
1729
|
+
sticker: Sticker;
|
|
1730
|
+
rarity_per_mille: number;
|
|
1731
|
+
}
|
|
1732
|
+
interface UniqueGiftSymbol {
|
|
1733
|
+
name: string;
|
|
1734
|
+
sticker: Sticker;
|
|
1735
|
+
rarity_per_mille: number;
|
|
1736
|
+
}
|
|
1737
|
+
interface Update {
|
|
1738
|
+
update_id: number;
|
|
1739
|
+
message?: Message;
|
|
1740
|
+
edited_message?: Message;
|
|
1741
|
+
channel_post?: Message;
|
|
1742
|
+
edited_channel_post?: Message;
|
|
1743
|
+
business_connection?: BusinessConnection;
|
|
1744
|
+
business_message?: Message;
|
|
1745
|
+
edited_business_message?: Message;
|
|
1746
|
+
deleted_business_messages?: BusinessMessagesDeleted;
|
|
1747
|
+
message_reaction?: MessageReactionUpdated;
|
|
1748
|
+
message_reaction_count?: MessageReactionCountUpdated;
|
|
1749
|
+
inline_query?: InlineQuery;
|
|
1750
|
+
chosen_inline_result?: ChosenInlineResult;
|
|
1751
|
+
callback_query?: CallbackQuery;
|
|
1752
|
+
shipping_query?: ShippingQuery;
|
|
1753
|
+
pre_checkout_query?: PreCheckoutQuery;
|
|
1754
|
+
purchased_paid_media?: PaidMediaPurchased;
|
|
1755
|
+
poll?: Poll;
|
|
1756
|
+
poll_answer?: PollAnswer;
|
|
1757
|
+
my_chat_member?: ChatMemberUpdated;
|
|
1758
|
+
chat_member?: ChatMemberUpdated;
|
|
1759
|
+
chat_join_request?: ChatJoinRequest;
|
|
1760
|
+
chat_boost?: ChatBoostUpdated;
|
|
1761
|
+
removed_chat_boost?: ChatBoostRemoved;
|
|
1762
|
+
}
|
|
1763
|
+
interface User {
|
|
1764
|
+
id: number;
|
|
1765
|
+
is_bot: boolean;
|
|
1766
|
+
first_name: string;
|
|
1767
|
+
last_name?: string;
|
|
1768
|
+
username?: string;
|
|
1769
|
+
language_code?: string;
|
|
1770
|
+
is_premium?: boolean;
|
|
1771
|
+
added_to_attachment_menu?: boolean;
|
|
1772
|
+
can_join_groups?: boolean;
|
|
1773
|
+
can_read_all_group_messages?: boolean;
|
|
1774
|
+
supports_inline_queries?: boolean;
|
|
1775
|
+
can_connect_to_business?: boolean;
|
|
1776
|
+
has_main_web_app?: boolean;
|
|
1777
|
+
}
|
|
1778
|
+
interface UserChatBoosts {
|
|
1779
|
+
boosts: ChatBoost[];
|
|
1780
|
+
}
|
|
1781
|
+
interface UserProfilePhotos {
|
|
1782
|
+
total_count: number;
|
|
1783
|
+
photos: PhotoSize[][];
|
|
1784
|
+
}
|
|
1785
|
+
interface UsersShared {
|
|
1786
|
+
request_id: number;
|
|
1787
|
+
users: SharedUser[];
|
|
1788
|
+
}
|
|
1789
|
+
interface Venue {
|
|
1790
|
+
location: Location;
|
|
1791
|
+
title: string;
|
|
1792
|
+
address: string;
|
|
1793
|
+
foursquare_id?: string;
|
|
1794
|
+
foursquare_type?: string;
|
|
1795
|
+
google_place_id?: string;
|
|
1796
|
+
google_place_type?: string;
|
|
1797
|
+
}
|
|
1798
|
+
interface Video {
|
|
1799
|
+
file_id: string;
|
|
1800
|
+
file_unique_id: string;
|
|
1801
|
+
width: number;
|
|
1802
|
+
height: number;
|
|
1803
|
+
duration: number;
|
|
1804
|
+
thumbnail?: PhotoSize;
|
|
1805
|
+
cover?: PhotoSize[];
|
|
1806
|
+
start_timestamp?: number;
|
|
1807
|
+
file_name?: string;
|
|
1808
|
+
mime_type?: string;
|
|
1809
|
+
file_size?: number;
|
|
1810
|
+
}
|
|
1811
|
+
interface VideoChatEnded {
|
|
1812
|
+
duration: number;
|
|
1813
|
+
}
|
|
1814
|
+
interface VideoChatParticipantsInvited {
|
|
1815
|
+
users: User[];
|
|
1816
|
+
}
|
|
1817
|
+
interface VideoChatScheduled {
|
|
1818
|
+
start_date: number;
|
|
1819
|
+
}
|
|
1820
|
+
type VideoChatStarted = never;
|
|
1821
|
+
interface VideoNote {
|
|
1822
|
+
file_id: string;
|
|
1823
|
+
file_unique_id: string;
|
|
1824
|
+
length: number;
|
|
1825
|
+
duration: number;
|
|
1826
|
+
thumbnail?: PhotoSize;
|
|
1827
|
+
file_size?: number;
|
|
1828
|
+
}
|
|
1829
|
+
interface Voice {
|
|
1830
|
+
file_id: string;
|
|
1831
|
+
file_unique_id: string;
|
|
1832
|
+
duration: number;
|
|
1833
|
+
mime_type?: string;
|
|
1834
|
+
file_size?: number;
|
|
1835
|
+
}
|
|
1836
|
+
interface WebAppData {
|
|
1837
|
+
data: string;
|
|
1838
|
+
button_text: string;
|
|
1839
|
+
}
|
|
1840
|
+
interface WebAppInfo {
|
|
1841
|
+
url: string;
|
|
1842
|
+
}
|
|
1843
|
+
interface WebhookInfo {
|
|
1844
|
+
url: string;
|
|
1845
|
+
has_custom_certificate: boolean;
|
|
1846
|
+
pending_update_count: number;
|
|
1847
|
+
ip_address?: string;
|
|
1848
|
+
last_error_date?: number;
|
|
1849
|
+
last_error_message?: string;
|
|
1850
|
+
last_synchronization_error_date?: number;
|
|
1851
|
+
max_connections?: number;
|
|
1852
|
+
allowed_updates?: string[];
|
|
1853
|
+
}
|
|
1854
|
+
interface WriteAccessAllowed {
|
|
1855
|
+
from_request?: boolean;
|
|
1856
|
+
web_app_name?: string;
|
|
1857
|
+
from_attachment_menu?: boolean;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
interface Api {
|
|
1861
|
+
add_sticker_to_set(_: AddStickerToSetInput): boolean;
|
|
1862
|
+
answer_callback_query(_: AnswerCallbackQueryInput): boolean;
|
|
1863
|
+
answer_inline_query(_: AnswerInlineQueryInput): boolean;
|
|
1864
|
+
answer_pre_checkout_query(_: AnswerPreCheckoutQueryInput): boolean;
|
|
1865
|
+
answer_shipping_query(_: AnswerShippingQueryInput): boolean;
|
|
1866
|
+
answer_web_app_query(_: AnswerWebAppQueryInput): SentWebAppMessage;
|
|
1867
|
+
approve_chat_join_request(_: ApproveChatJoinRequestInput): boolean;
|
|
1868
|
+
ban_chat_member(_: BanChatMemberInput): boolean;
|
|
1869
|
+
ban_chat_sender_chat(_: BanChatSenderChatInput): boolean;
|
|
1870
|
+
close(_: CloseInput): boolean;
|
|
1871
|
+
close_forum_topic(_: CloseForumTopicInput): boolean;
|
|
1872
|
+
close_general_forum_topic(_: CloseGeneralForumTopicInput): boolean;
|
|
1873
|
+
convert_gift_to_stars(_: ConvertGiftToStarsInput): boolean;
|
|
1874
|
+
copy_message(_: CopyMessageInput): MessageId;
|
|
1875
|
+
copy_messages(_: CopyMessagesInput): MessageId[];
|
|
1876
|
+
create_chat_invite_link(_: CreateChatInviteLinkInput): ChatInviteLink;
|
|
1877
|
+
create_chat_subscription_invite_link(_: CreateChatSubscriptionInviteLinkInput): ChatInviteLink;
|
|
1878
|
+
create_forum_topic(_: CreateForumTopicInput): ForumTopic;
|
|
1879
|
+
create_invoice_link(_: CreateInvoiceLinkInput): string;
|
|
1880
|
+
create_new_sticker_set(_: CreateNewStickerSetInput): boolean;
|
|
1881
|
+
decline_chat_join_request(_: DeclineChatJoinRequestInput): boolean;
|
|
1882
|
+
delete_business_messages(_: DeleteBusinessMessagesInput): boolean;
|
|
1883
|
+
delete_chat_photo(_: DeleteChatPhotoInput): boolean;
|
|
1884
|
+
delete_chat_sticker_set(_: DeleteChatStickerSetInput): boolean;
|
|
1885
|
+
delete_forum_topic(_: DeleteForumTopicInput): boolean;
|
|
1886
|
+
delete_message(_: DeleteMessageInput): boolean;
|
|
1887
|
+
delete_messages(_: DeleteMessagesInput): boolean;
|
|
1888
|
+
delete_my_commands(_: DeleteMyCommandsInput): boolean;
|
|
1889
|
+
delete_sticker_from_set(_: DeleteStickerFromSetInput): boolean;
|
|
1890
|
+
delete_sticker_set(_: DeleteStickerSetInput): boolean;
|
|
1891
|
+
delete_story(_: DeleteStoryInput): boolean;
|
|
1892
|
+
delete_webhook(_: DeleteWebhookInput): boolean;
|
|
1893
|
+
edit_chat_invite_link(_: EditChatInviteLinkInput): ChatInviteLink;
|
|
1894
|
+
edit_chat_subscription_invite_link(_: EditChatSubscriptionInviteLinkInput): ChatInviteLink;
|
|
1895
|
+
edit_forum_topic(_: EditForumTopicInput): boolean;
|
|
1896
|
+
edit_general_forum_topic(_: EditGeneralForumTopicInput): boolean;
|
|
1897
|
+
edit_message_caption(_: EditMessageCaptionInput): Message | boolean;
|
|
1898
|
+
edit_message_live_location(_: EditMessageLiveLocationInput): Message | boolean;
|
|
1899
|
+
edit_message_media(_: EditMessageMediaInput): Message | boolean;
|
|
1900
|
+
edit_message_reply_markup(_: EditMessageReplyMarkupInput): Message | boolean;
|
|
1901
|
+
edit_message_text(_: EditMessageTextInput): Message | boolean;
|
|
1902
|
+
edit_story(_: EditStoryInput): Story;
|
|
1903
|
+
edit_user_star_subscription(_: EditUserStarSubscriptionInput): boolean;
|
|
1904
|
+
export_chat_invite_link(_: ExportChatInviteLinkInput): string;
|
|
1905
|
+
forward_message(_: ForwardMessageInput): Message;
|
|
1906
|
+
forward_messages(_: ForwardMessagesInput): MessageId[];
|
|
1907
|
+
get_available_gifts(_: GetAvailableGiftsInput): Gifts;
|
|
1908
|
+
get_business_account_gifts(_: GetBusinessAccountGiftsInput): OwnedGifts;
|
|
1909
|
+
get_business_account_star_balance(_: GetBusinessAccountStarBalanceInput): StarAmount;
|
|
1910
|
+
get_business_connection(_: GetBusinessConnectionInput): BusinessConnection;
|
|
1911
|
+
get_chat(_: GetChatInput): ChatFullInfo;
|
|
1912
|
+
get_chat_administrators(_: GetChatAdministratorsInput): ChatMember[];
|
|
1913
|
+
get_chat_member(_: GetChatMemberInput): ChatMember;
|
|
1914
|
+
get_chat_member_count(_: GetChatMemberCountInput): number;
|
|
1915
|
+
get_chat_menu_button(_: GetChatMenuButtonInput): MenuButton;
|
|
1916
|
+
get_custom_emoji_stickers(_: GetCustomEmojiStickersInput): Sticker[];
|
|
1917
|
+
get_file(_: GetFileInput): File;
|
|
1918
|
+
get_forum_topic_icon_stickers(_: GetForumTopicIconStickersInput): Sticker[];
|
|
1919
|
+
get_game_high_scores(_: GetGameHighScoresInput): GameHighScore[];
|
|
1920
|
+
get_me(_: GetMeInput): User;
|
|
1921
|
+
get_my_commands(_: GetMyCommandsInput): BotCommand[];
|
|
1922
|
+
get_my_default_administrator_rights(_: GetMyDefaultAdministratorRightsInput): ChatAdministratorRights;
|
|
1923
|
+
get_my_description(_: GetMyDescriptionInput): BotDescription;
|
|
1924
|
+
get_my_name(_: GetMyNameInput): BotName;
|
|
1925
|
+
get_my_short_description(_: GetMyShortDescriptionInput): BotShortDescription;
|
|
1926
|
+
get_star_transactions(_: GetStarTransactionsInput): StarTransactions;
|
|
1927
|
+
get_sticker_set(_: GetStickerSetInput): StickerSet;
|
|
1928
|
+
get_updates(_: GetUpdatesInput): Update[];
|
|
1929
|
+
get_user_chat_boosts(_: GetUserChatBoostsInput): UserChatBoosts;
|
|
1930
|
+
get_user_profile_photos(_: GetUserProfilePhotosInput): UserProfilePhotos;
|
|
1931
|
+
get_webhook_info(_: GetWebhookInfoInput): WebhookInfo;
|
|
1932
|
+
gift_premium_subscription(_: GiftPremiumSubscriptionInput): boolean;
|
|
1933
|
+
hide_general_forum_topic(_: HideGeneralForumTopicInput): boolean;
|
|
1934
|
+
leave_chat(_: LeaveChatInput): boolean;
|
|
1935
|
+
log_out(_: LogOutInput): boolean;
|
|
1936
|
+
pin_chat_message(_: PinChatMessageInput): boolean;
|
|
1937
|
+
post_story(_: PostStoryInput): Story;
|
|
1938
|
+
promote_chat_member(_: PromoteChatMemberInput): boolean;
|
|
1939
|
+
read_business_message(_: ReadBusinessMessageInput): boolean;
|
|
1940
|
+
refund_star_payment(_: RefundStarPaymentInput): boolean;
|
|
1941
|
+
remove_business_account_profile_photo(_: RemoveBusinessAccountProfilePhotoInput): boolean;
|
|
1942
|
+
remove_chat_verification(_: RemoveChatVerificationInput): boolean;
|
|
1943
|
+
remove_user_verification(_: RemoveUserVerificationInput): boolean;
|
|
1944
|
+
reopen_forum_topic(_: ReopenForumTopicInput): boolean;
|
|
1945
|
+
reopen_general_forum_topic(_: ReopenGeneralForumTopicInput): boolean;
|
|
1946
|
+
replace_sticker_in_set(_: ReplaceStickerInSetInput): boolean;
|
|
1947
|
+
restrict_chat_member(_: RestrictChatMemberInput): boolean;
|
|
1948
|
+
revoke_chat_invite_link(_: RevokeChatInviteLinkInput): ChatInviteLink;
|
|
1949
|
+
save_prepared_inline_message(_: SavePreparedInlineMessageInput): PreparedInlineMessage;
|
|
1950
|
+
send_animation(_: SendAnimationInput): Message;
|
|
1951
|
+
send_audio(_: SendAudioInput): Message;
|
|
1952
|
+
send_chat_action(_: SendChatActionInput): boolean;
|
|
1953
|
+
send_contact(_: SendContactInput): Message;
|
|
1954
|
+
send_dice(_: SendDiceInput): Message;
|
|
1955
|
+
send_document(_: SendDocumentInput): Message;
|
|
1956
|
+
send_game(_: SendGameInput): Message;
|
|
1957
|
+
send_gift(_: SendGiftInput): boolean;
|
|
1958
|
+
send_invoice(_: SendInvoiceInput): Message;
|
|
1959
|
+
send_location(_: SendLocationInput): Message;
|
|
1960
|
+
send_media_group(_: SendMediaGroupInput): Message[];
|
|
1961
|
+
send_message(_: SendMessageInput): Message;
|
|
1962
|
+
send_paid_media(_: SendPaidMediaInput): Message;
|
|
1963
|
+
send_photo(_: SendPhotoInput): Message;
|
|
1964
|
+
send_poll(_: SendPollInput): Message;
|
|
1965
|
+
send_sticker(_: SendStickerInput): Message;
|
|
1966
|
+
send_venue(_: SendVenueInput): Message;
|
|
1967
|
+
send_video(_: SendVideoInput): Message;
|
|
1968
|
+
send_video_note(_: SendVideoNoteInput): Message;
|
|
1969
|
+
send_voice(_: SendVoiceInput): Message;
|
|
1970
|
+
set_business_account_bio(_: SetBusinessAccountBioInput): boolean;
|
|
1971
|
+
set_business_account_gift_settings(_: SetBusinessAccountGiftSettingsInput): boolean;
|
|
1972
|
+
set_business_account_name(_: SetBusinessAccountNameInput): boolean;
|
|
1973
|
+
set_business_account_profile_photo(_: SetBusinessAccountProfilePhotoInput): boolean;
|
|
1974
|
+
set_business_account_username(_: SetBusinessAccountUsernameInput): boolean;
|
|
1975
|
+
set_chat_administrator_custom_title(_: SetChatAdministratorCustomTitleInput): boolean;
|
|
1976
|
+
set_chat_description(_: SetChatDescriptionInput): boolean;
|
|
1977
|
+
set_chat_menu_button(_: SetChatMenuButtonInput): boolean;
|
|
1978
|
+
set_chat_permissions(_: SetChatPermissionsInput): boolean;
|
|
1979
|
+
set_chat_photo(_: SetChatPhotoInput): boolean;
|
|
1980
|
+
set_chat_sticker_set(_: SetChatStickerSetInput): boolean;
|
|
1981
|
+
set_chat_title(_: SetChatTitleInput): boolean;
|
|
1982
|
+
set_custom_emoji_sticker_set_thumbnail(_: SetCustomEmojiStickerSetThumbnailInput): boolean;
|
|
1983
|
+
set_game_score(_: SetGameScoreInput): Message | boolean;
|
|
1984
|
+
set_message_reaction(_: SetMessageReactionInput): boolean;
|
|
1985
|
+
set_my_commands(_: SetMyCommandsInput): boolean;
|
|
1986
|
+
set_my_default_administrator_rights(_: SetMyDefaultAdministratorRightsInput): boolean;
|
|
1987
|
+
set_my_description(_: SetMyDescriptionInput): boolean;
|
|
1988
|
+
set_my_name(_: SetMyNameInput): boolean;
|
|
1989
|
+
set_my_short_description(_: SetMyShortDescriptionInput): boolean;
|
|
1990
|
+
set_passport_data_errors(_: SetPassportDataErrorsInput): boolean;
|
|
1991
|
+
set_sticker_emoji_list(_: SetStickerEmojiListInput): boolean;
|
|
1992
|
+
set_sticker_keywords(_: SetStickerKeywordsInput): boolean;
|
|
1993
|
+
set_sticker_mask_position(_: SetStickerMaskPositionInput): boolean;
|
|
1994
|
+
set_sticker_position_in_set(_: SetStickerPositionInSetInput): boolean;
|
|
1995
|
+
set_sticker_set_thumbnail(_: SetStickerSetThumbnailInput): boolean;
|
|
1996
|
+
set_sticker_set_title(_: SetStickerSetTitleInput): boolean;
|
|
1997
|
+
set_user_emoji_status(_: SetUserEmojiStatusInput): boolean;
|
|
1998
|
+
set_webhook(_: SetWebhookInput): boolean;
|
|
1999
|
+
stop_message_live_location(_: StopMessageLiveLocationInput): Message | boolean;
|
|
2000
|
+
stop_poll(_: StopPollInput): Poll;
|
|
2001
|
+
transfer_business_account_stars(_: TransferBusinessAccountStarsInput): boolean;
|
|
2002
|
+
transfer_gift(_: TransferGiftInput): boolean;
|
|
2003
|
+
unban_chat_member(_: UnbanChatMemberInput): boolean;
|
|
2004
|
+
unban_chat_sender_chat(_: UnbanChatSenderChatInput): boolean;
|
|
2005
|
+
unhide_general_forum_topic(_: UnhideGeneralForumTopicInput): boolean;
|
|
2006
|
+
unpin_all_chat_messages(_: UnpinAllChatMessagesInput): boolean;
|
|
2007
|
+
unpin_all_forum_topic_messages(_: UnpinAllForumTopicMessagesInput): boolean;
|
|
2008
|
+
unpin_all_general_forum_topic_messages(_: UnpinAllGeneralForumTopicMessagesInput): boolean;
|
|
2009
|
+
unpin_chat_message(_: UnpinChatMessageInput): boolean;
|
|
2010
|
+
upgrade_gift(_: UpgradeGiftInput): boolean;
|
|
2011
|
+
upload_sticker_file(_: UploadStickerFileInput): File;
|
|
2012
|
+
verify_chat(_: VerifyChatInput): boolean;
|
|
2013
|
+
verify_user(_: VerifyUserInput): boolean;
|
|
2014
|
+
}
|
|
2015
|
+
interface AddStickerToSetInput {
|
|
2016
|
+
user_id: number;
|
|
2017
|
+
name: string;
|
|
2018
|
+
sticker: InputSticker;
|
|
2019
|
+
}
|
|
2020
|
+
interface AnswerCallbackQueryInput {
|
|
2021
|
+
callback_query_id: string;
|
|
2022
|
+
text?: string;
|
|
2023
|
+
show_alert?: boolean;
|
|
2024
|
+
url?: string;
|
|
2025
|
+
cache_time?: number;
|
|
2026
|
+
}
|
|
2027
|
+
interface AnswerInlineQueryInput {
|
|
2028
|
+
inline_query_id: string;
|
|
2029
|
+
results: InlineQueryResult[];
|
|
2030
|
+
cache_time?: number;
|
|
2031
|
+
is_personal?: boolean;
|
|
2032
|
+
next_offset?: string;
|
|
2033
|
+
button?: InlineQueryResultsButton;
|
|
2034
|
+
}
|
|
2035
|
+
interface AnswerPreCheckoutQueryInput {
|
|
2036
|
+
pre_checkout_query_id: string;
|
|
2037
|
+
ok: boolean;
|
|
2038
|
+
error_message?: string;
|
|
2039
|
+
}
|
|
2040
|
+
interface AnswerShippingQueryInput {
|
|
2041
|
+
shipping_query_id: string;
|
|
2042
|
+
ok: boolean;
|
|
2043
|
+
shipping_options?: ShippingOption[];
|
|
2044
|
+
error_message?: string;
|
|
2045
|
+
}
|
|
2046
|
+
interface AnswerWebAppQueryInput {
|
|
2047
|
+
web_app_query_id: string;
|
|
2048
|
+
result: InlineQueryResult;
|
|
2049
|
+
}
|
|
2050
|
+
interface ApproveChatJoinRequestInput {
|
|
2051
|
+
chat_id: number | string;
|
|
2052
|
+
user_id: number;
|
|
2053
|
+
}
|
|
2054
|
+
interface BanChatMemberInput {
|
|
2055
|
+
chat_id: number | string;
|
|
2056
|
+
user_id: number;
|
|
2057
|
+
until_date?: number;
|
|
2058
|
+
revoke_messages?: boolean;
|
|
2059
|
+
}
|
|
2060
|
+
interface BanChatSenderChatInput {
|
|
2061
|
+
chat_id: number | string;
|
|
2062
|
+
sender_chat_id: number;
|
|
2063
|
+
}
|
|
2064
|
+
interface CloseInput {
|
|
2065
|
+
}
|
|
2066
|
+
interface CloseForumTopicInput {
|
|
2067
|
+
chat_id: number | string;
|
|
2068
|
+
message_thread_id: number;
|
|
2069
|
+
}
|
|
2070
|
+
interface CloseGeneralForumTopicInput {
|
|
2071
|
+
chat_id: number | string;
|
|
2072
|
+
}
|
|
2073
|
+
interface ConvertGiftToStarsInput {
|
|
2074
|
+
business_connection_id: string;
|
|
2075
|
+
owned_gift_id: string;
|
|
2076
|
+
}
|
|
2077
|
+
interface CopyMessageInput {
|
|
2078
|
+
chat_id: number | string;
|
|
2079
|
+
from_chat_id: number | string;
|
|
2080
|
+
message_id: number;
|
|
2081
|
+
message_thread_id?: number;
|
|
2082
|
+
video_start_timestamp?: number;
|
|
2083
|
+
caption?: string;
|
|
2084
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2085
|
+
caption_entities?: MessageEntity[];
|
|
2086
|
+
show_caption_above_media?: boolean;
|
|
2087
|
+
disable_notification?: boolean;
|
|
2088
|
+
protect_content?: boolean;
|
|
2089
|
+
allow_paid_broadcast?: boolean;
|
|
2090
|
+
reply_parameters?: ReplyParameters;
|
|
2091
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2092
|
+
}
|
|
2093
|
+
interface CopyMessagesInput {
|
|
2094
|
+
chat_id: number | string;
|
|
2095
|
+
from_chat_id: number | string;
|
|
2096
|
+
message_ids: number[];
|
|
2097
|
+
message_thread_id?: number;
|
|
2098
|
+
disable_notification?: boolean;
|
|
2099
|
+
protect_content?: boolean;
|
|
2100
|
+
remove_caption?: boolean;
|
|
2101
|
+
}
|
|
2102
|
+
interface CreateChatInviteLinkInput {
|
|
2103
|
+
chat_id: number | string;
|
|
2104
|
+
name?: string;
|
|
2105
|
+
expire_date?: number;
|
|
2106
|
+
member_limit?: number;
|
|
2107
|
+
creates_join_request?: boolean;
|
|
2108
|
+
}
|
|
2109
|
+
interface CreateChatSubscriptionInviteLinkInput {
|
|
2110
|
+
chat_id: number | string;
|
|
2111
|
+
subscription_period: number;
|
|
2112
|
+
subscription_price: number;
|
|
2113
|
+
name?: string;
|
|
2114
|
+
}
|
|
2115
|
+
interface CreateForumTopicInput {
|
|
2116
|
+
chat_id: number | string;
|
|
2117
|
+
name: string;
|
|
2118
|
+
icon_color?: number;
|
|
2119
|
+
icon_custom_emoji_id?: string;
|
|
2120
|
+
}
|
|
2121
|
+
interface CreateInvoiceLinkInput {
|
|
2122
|
+
title: string;
|
|
2123
|
+
description: string;
|
|
2124
|
+
payload: string;
|
|
2125
|
+
currency: string;
|
|
2126
|
+
prices: LabeledPrice[];
|
|
2127
|
+
business_connection_id?: string;
|
|
2128
|
+
provider_token?: string;
|
|
2129
|
+
subscription_period?: number;
|
|
2130
|
+
max_tip_amount?: number;
|
|
2131
|
+
suggested_tip_amounts?: number[];
|
|
2132
|
+
provider_data?: string;
|
|
2133
|
+
photo_url?: string;
|
|
2134
|
+
photo_size?: number;
|
|
2135
|
+
photo_width?: number;
|
|
2136
|
+
photo_height?: number;
|
|
2137
|
+
need_name?: boolean;
|
|
2138
|
+
need_phone_number?: boolean;
|
|
2139
|
+
need_email?: boolean;
|
|
2140
|
+
need_shipping_address?: boolean;
|
|
2141
|
+
send_phone_number_to_provider?: boolean;
|
|
2142
|
+
send_email_to_provider?: boolean;
|
|
2143
|
+
is_flexible?: boolean;
|
|
2144
|
+
}
|
|
2145
|
+
interface CreateNewStickerSetInput {
|
|
2146
|
+
user_id: number;
|
|
2147
|
+
name: string;
|
|
2148
|
+
title: string;
|
|
2149
|
+
stickers: InputSticker[];
|
|
2150
|
+
sticker_type?: string;
|
|
2151
|
+
needs_repainting?: boolean;
|
|
2152
|
+
}
|
|
2153
|
+
interface DeclineChatJoinRequestInput {
|
|
2154
|
+
chat_id: number | string;
|
|
2155
|
+
user_id: number;
|
|
2156
|
+
}
|
|
2157
|
+
interface DeleteBusinessMessagesInput {
|
|
2158
|
+
business_connection_id: string;
|
|
2159
|
+
message_ids: number[];
|
|
2160
|
+
}
|
|
2161
|
+
interface DeleteChatPhotoInput {
|
|
2162
|
+
chat_id: number | string;
|
|
2163
|
+
}
|
|
2164
|
+
interface DeleteChatStickerSetInput {
|
|
2165
|
+
chat_id: number | string;
|
|
2166
|
+
}
|
|
2167
|
+
interface DeleteForumTopicInput {
|
|
2168
|
+
chat_id: number | string;
|
|
2169
|
+
message_thread_id: number;
|
|
2170
|
+
}
|
|
2171
|
+
interface DeleteMessageInput {
|
|
2172
|
+
chat_id: number | string;
|
|
2173
|
+
message_id: number;
|
|
2174
|
+
}
|
|
2175
|
+
interface DeleteMessagesInput {
|
|
2176
|
+
chat_id: number | string;
|
|
2177
|
+
message_ids: number[];
|
|
2178
|
+
}
|
|
2179
|
+
interface DeleteMyCommandsInput {
|
|
2180
|
+
scope?: BotCommandScope;
|
|
2181
|
+
language_code?: string;
|
|
2182
|
+
}
|
|
2183
|
+
interface DeleteStickerFromSetInput {
|
|
2184
|
+
sticker: string;
|
|
2185
|
+
}
|
|
2186
|
+
interface DeleteStickerSetInput {
|
|
2187
|
+
name: string;
|
|
2188
|
+
}
|
|
2189
|
+
interface DeleteStoryInput {
|
|
2190
|
+
business_connection_id: string;
|
|
2191
|
+
story_id: number;
|
|
2192
|
+
}
|
|
2193
|
+
interface DeleteWebhookInput {
|
|
2194
|
+
drop_pending_updates?: boolean;
|
|
2195
|
+
}
|
|
2196
|
+
interface EditChatInviteLinkInput {
|
|
2197
|
+
chat_id: number | string;
|
|
2198
|
+
invite_link: string;
|
|
2199
|
+
name?: string;
|
|
2200
|
+
expire_date?: number;
|
|
2201
|
+
member_limit?: number;
|
|
2202
|
+
creates_join_request?: boolean;
|
|
2203
|
+
}
|
|
2204
|
+
interface EditChatSubscriptionInviteLinkInput {
|
|
2205
|
+
chat_id: number | string;
|
|
2206
|
+
invite_link: string;
|
|
2207
|
+
name?: string;
|
|
2208
|
+
}
|
|
2209
|
+
interface EditForumTopicInput {
|
|
2210
|
+
chat_id: number | string;
|
|
2211
|
+
message_thread_id: number;
|
|
2212
|
+
name?: string;
|
|
2213
|
+
icon_custom_emoji_id?: string;
|
|
2214
|
+
}
|
|
2215
|
+
interface EditGeneralForumTopicInput {
|
|
2216
|
+
chat_id: number | string;
|
|
2217
|
+
name: string;
|
|
2218
|
+
}
|
|
2219
|
+
interface EditMessageCaptionInput {
|
|
2220
|
+
business_connection_id?: string;
|
|
2221
|
+
chat_id?: number | string;
|
|
2222
|
+
message_id?: number;
|
|
2223
|
+
inline_message_id?: string;
|
|
2224
|
+
caption?: string;
|
|
2225
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2226
|
+
caption_entities?: MessageEntity[];
|
|
2227
|
+
show_caption_above_media?: boolean;
|
|
2228
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2229
|
+
}
|
|
2230
|
+
interface EditMessageLiveLocationInput {
|
|
2231
|
+
latitude: number;
|
|
2232
|
+
longitude: number;
|
|
2233
|
+
business_connection_id?: string;
|
|
2234
|
+
chat_id?: number | string;
|
|
2235
|
+
message_id?: number;
|
|
2236
|
+
inline_message_id?: string;
|
|
2237
|
+
live_period?: number;
|
|
2238
|
+
horizontal_accuracy?: number;
|
|
2239
|
+
heading?: number;
|
|
2240
|
+
proximity_alert_radius?: number;
|
|
2241
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2242
|
+
}
|
|
2243
|
+
interface EditMessageMediaInput {
|
|
2244
|
+
media: InputMedia;
|
|
2245
|
+
business_connection_id?: string;
|
|
2246
|
+
chat_id?: number | string;
|
|
2247
|
+
message_id?: number;
|
|
2248
|
+
inline_message_id?: string;
|
|
2249
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2250
|
+
}
|
|
2251
|
+
interface EditMessageReplyMarkupInput {
|
|
2252
|
+
business_connection_id?: string;
|
|
2253
|
+
chat_id?: number | string;
|
|
2254
|
+
message_id?: number;
|
|
2255
|
+
inline_message_id?: string;
|
|
2256
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2257
|
+
}
|
|
2258
|
+
interface EditMessageTextInput {
|
|
2259
|
+
text: string;
|
|
2260
|
+
business_connection_id?: string;
|
|
2261
|
+
chat_id?: number | string;
|
|
2262
|
+
message_id?: number;
|
|
2263
|
+
inline_message_id?: string;
|
|
2264
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2265
|
+
entities?: MessageEntity[];
|
|
2266
|
+
link_preview_options?: LinkPreviewOptions;
|
|
2267
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2268
|
+
}
|
|
2269
|
+
interface EditStoryInput {
|
|
2270
|
+
business_connection_id: string;
|
|
2271
|
+
story_id: number;
|
|
2272
|
+
content: InputStoryContent;
|
|
2273
|
+
caption?: string;
|
|
2274
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2275
|
+
caption_entities?: MessageEntity[];
|
|
2276
|
+
areas?: StoryArea[];
|
|
2277
|
+
}
|
|
2278
|
+
interface EditUserStarSubscriptionInput {
|
|
2279
|
+
user_id: number;
|
|
2280
|
+
telegram_payment_charge_id: string;
|
|
2281
|
+
is_canceled: boolean;
|
|
2282
|
+
}
|
|
2283
|
+
interface ExportChatInviteLinkInput {
|
|
2284
|
+
chat_id: number | string;
|
|
2285
|
+
}
|
|
2286
|
+
interface ForwardMessageInput {
|
|
2287
|
+
chat_id: number | string;
|
|
2288
|
+
from_chat_id: number | string;
|
|
2289
|
+
message_id: number;
|
|
2290
|
+
message_thread_id?: number;
|
|
2291
|
+
video_start_timestamp?: number;
|
|
2292
|
+
disable_notification?: boolean;
|
|
2293
|
+
protect_content?: boolean;
|
|
2294
|
+
}
|
|
2295
|
+
interface ForwardMessagesInput {
|
|
2296
|
+
chat_id: number | string;
|
|
2297
|
+
from_chat_id: number | string;
|
|
2298
|
+
message_ids: number[];
|
|
2299
|
+
message_thread_id?: number;
|
|
2300
|
+
disable_notification?: boolean;
|
|
2301
|
+
protect_content?: boolean;
|
|
2302
|
+
}
|
|
2303
|
+
interface GetAvailableGiftsInput {
|
|
2304
|
+
}
|
|
2305
|
+
interface GetBusinessAccountGiftsInput {
|
|
2306
|
+
business_connection_id: string;
|
|
2307
|
+
exclude_unsaved?: boolean;
|
|
2308
|
+
exclude_saved?: boolean;
|
|
2309
|
+
exclude_unlimited?: boolean;
|
|
2310
|
+
exclude_limited?: boolean;
|
|
2311
|
+
exclude_unique?: boolean;
|
|
2312
|
+
sort_by_price?: boolean;
|
|
2313
|
+
offset?: string;
|
|
2314
|
+
limit?: number;
|
|
2315
|
+
}
|
|
2316
|
+
interface GetBusinessAccountStarBalanceInput {
|
|
2317
|
+
business_connection_id: string;
|
|
2318
|
+
}
|
|
2319
|
+
interface GetBusinessConnectionInput {
|
|
2320
|
+
business_connection_id: string;
|
|
2321
|
+
}
|
|
2322
|
+
interface GetChatInput {
|
|
2323
|
+
chat_id: number | string;
|
|
2324
|
+
}
|
|
2325
|
+
interface GetChatAdministratorsInput {
|
|
2326
|
+
chat_id: number | string;
|
|
2327
|
+
}
|
|
2328
|
+
interface GetChatMemberInput {
|
|
2329
|
+
chat_id: number | string;
|
|
2330
|
+
user_id: number;
|
|
2331
|
+
}
|
|
2332
|
+
interface GetChatMemberCountInput {
|
|
2333
|
+
chat_id: number | string;
|
|
2334
|
+
}
|
|
2335
|
+
interface GetChatMenuButtonInput {
|
|
2336
|
+
chat_id?: number;
|
|
2337
|
+
}
|
|
2338
|
+
interface GetCustomEmojiStickersInput {
|
|
2339
|
+
custom_emoji_ids: string[];
|
|
2340
|
+
}
|
|
2341
|
+
interface GetFileInput {
|
|
2342
|
+
file_id: string;
|
|
2343
|
+
}
|
|
2344
|
+
interface GetForumTopicIconStickersInput {
|
|
2345
|
+
}
|
|
2346
|
+
interface GetGameHighScoresInput {
|
|
2347
|
+
user_id: number;
|
|
2348
|
+
chat_id?: number;
|
|
2349
|
+
message_id?: number;
|
|
2350
|
+
inline_message_id?: string;
|
|
2351
|
+
}
|
|
2352
|
+
interface GetMeInput {
|
|
2353
|
+
}
|
|
2354
|
+
interface GetMyCommandsInput {
|
|
2355
|
+
scope?: BotCommandScope;
|
|
2356
|
+
language_code?: string;
|
|
2357
|
+
}
|
|
2358
|
+
interface GetMyDefaultAdministratorRightsInput {
|
|
2359
|
+
for_channels?: boolean;
|
|
2360
|
+
}
|
|
2361
|
+
interface GetMyDescriptionInput {
|
|
2362
|
+
language_code?: string;
|
|
2363
|
+
}
|
|
2364
|
+
interface GetMyNameInput {
|
|
2365
|
+
language_code?: string;
|
|
2366
|
+
}
|
|
2367
|
+
interface GetMyShortDescriptionInput {
|
|
2368
|
+
language_code?: string;
|
|
2369
|
+
}
|
|
2370
|
+
interface GetStarTransactionsInput {
|
|
2371
|
+
offset?: number;
|
|
2372
|
+
limit?: number;
|
|
2373
|
+
}
|
|
2374
|
+
interface GetStickerSetInput {
|
|
2375
|
+
name: string;
|
|
2376
|
+
}
|
|
2377
|
+
interface GetUpdatesInput {
|
|
2378
|
+
offset?: number;
|
|
2379
|
+
limit?: number;
|
|
2380
|
+
timeout?: number;
|
|
2381
|
+
allowed_updates?: AllowedUpdateName[];
|
|
2382
|
+
}
|
|
2383
|
+
interface GetUserChatBoostsInput {
|
|
2384
|
+
chat_id: number | string;
|
|
2385
|
+
user_id: number;
|
|
2386
|
+
}
|
|
2387
|
+
interface GetUserProfilePhotosInput {
|
|
2388
|
+
user_id: number;
|
|
2389
|
+
offset?: number;
|
|
2390
|
+
limit?: number;
|
|
2391
|
+
}
|
|
2392
|
+
interface GetWebhookInfoInput {
|
|
2393
|
+
}
|
|
2394
|
+
interface GiftPremiumSubscriptionInput {
|
|
2395
|
+
user_id: number;
|
|
2396
|
+
month_count: number;
|
|
2397
|
+
star_count: number;
|
|
2398
|
+
text?: string;
|
|
2399
|
+
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
2400
|
+
text_entities?: MessageEntity[];
|
|
2401
|
+
}
|
|
2402
|
+
interface HideGeneralForumTopicInput {
|
|
2403
|
+
chat_id: number | string;
|
|
2404
|
+
}
|
|
2405
|
+
interface LeaveChatInput {
|
|
2406
|
+
chat_id: number | string;
|
|
2407
|
+
}
|
|
2408
|
+
interface LogOutInput {
|
|
2409
|
+
}
|
|
2410
|
+
interface PinChatMessageInput {
|
|
2411
|
+
chat_id: number | string;
|
|
2412
|
+
message_id: number;
|
|
2413
|
+
business_connection_id?: string;
|
|
2414
|
+
disable_notification?: boolean;
|
|
2415
|
+
}
|
|
2416
|
+
interface PostStoryInput {
|
|
2417
|
+
business_connection_id: string;
|
|
2418
|
+
content: InputStoryContent;
|
|
2419
|
+
active_period: number;
|
|
2420
|
+
caption?: string;
|
|
2421
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2422
|
+
caption_entities?: MessageEntity[];
|
|
2423
|
+
areas?: StoryArea[];
|
|
2424
|
+
post_to_chat_page?: boolean;
|
|
2425
|
+
protect_content?: boolean;
|
|
2426
|
+
}
|
|
2427
|
+
interface PromoteChatMemberInput {
|
|
2428
|
+
chat_id: number | string;
|
|
2429
|
+
user_id: number;
|
|
2430
|
+
is_anonymous?: boolean;
|
|
2431
|
+
can_manage_chat?: boolean;
|
|
2432
|
+
can_delete_messages?: boolean;
|
|
2433
|
+
can_manage_video_chats?: boolean;
|
|
2434
|
+
can_restrict_members?: boolean;
|
|
2435
|
+
can_promote_members?: boolean;
|
|
2436
|
+
can_change_info?: boolean;
|
|
2437
|
+
can_invite_users?: boolean;
|
|
2438
|
+
can_post_stories?: boolean;
|
|
2439
|
+
can_edit_stories?: boolean;
|
|
2440
|
+
can_delete_stories?: boolean;
|
|
2441
|
+
can_post_messages?: boolean;
|
|
2442
|
+
can_edit_messages?: boolean;
|
|
2443
|
+
can_pin_messages?: boolean;
|
|
2444
|
+
can_manage_topics?: boolean;
|
|
2445
|
+
}
|
|
2446
|
+
interface ReadBusinessMessageInput {
|
|
2447
|
+
business_connection_id: string;
|
|
2448
|
+
chat_id: number;
|
|
2449
|
+
message_id: number;
|
|
2450
|
+
}
|
|
2451
|
+
interface RefundStarPaymentInput {
|
|
2452
|
+
user_id: number;
|
|
2453
|
+
telegram_payment_charge_id: string;
|
|
2454
|
+
}
|
|
2455
|
+
interface RemoveBusinessAccountProfilePhotoInput {
|
|
2456
|
+
business_connection_id: string;
|
|
2457
|
+
is_public?: boolean;
|
|
2458
|
+
}
|
|
2459
|
+
interface RemoveChatVerificationInput {
|
|
2460
|
+
chat_id: number | string;
|
|
2461
|
+
}
|
|
2462
|
+
interface RemoveUserVerificationInput {
|
|
2463
|
+
user_id: number;
|
|
2464
|
+
}
|
|
2465
|
+
interface ReopenForumTopicInput {
|
|
2466
|
+
chat_id: number | string;
|
|
2467
|
+
message_thread_id: number;
|
|
2468
|
+
}
|
|
2469
|
+
interface ReopenGeneralForumTopicInput {
|
|
2470
|
+
chat_id: number | string;
|
|
2471
|
+
}
|
|
2472
|
+
interface ReplaceStickerInSetInput {
|
|
2473
|
+
user_id: number;
|
|
2474
|
+
name: string;
|
|
2475
|
+
old_sticker: string;
|
|
2476
|
+
sticker: InputSticker;
|
|
2477
|
+
}
|
|
2478
|
+
interface RestrictChatMemberInput {
|
|
2479
|
+
chat_id: number | string;
|
|
2480
|
+
user_id: number;
|
|
2481
|
+
permissions: ChatPermissions;
|
|
2482
|
+
use_independent_chat_permissions?: boolean;
|
|
2483
|
+
until_date?: number;
|
|
2484
|
+
}
|
|
2485
|
+
interface RevokeChatInviteLinkInput {
|
|
2486
|
+
chat_id: number | string;
|
|
2487
|
+
invite_link: string;
|
|
2488
|
+
}
|
|
2489
|
+
interface SavePreparedInlineMessageInput {
|
|
2490
|
+
user_id: number;
|
|
2491
|
+
result: InlineQueryResult;
|
|
2492
|
+
allow_user_chats?: boolean;
|
|
2493
|
+
allow_bot_chats?: boolean;
|
|
2494
|
+
allow_group_chats?: boolean;
|
|
2495
|
+
allow_channel_chats?: boolean;
|
|
2496
|
+
}
|
|
2497
|
+
interface SendAnimationInput {
|
|
2498
|
+
chat_id: number | string;
|
|
2499
|
+
animation: InputFile | string;
|
|
2500
|
+
business_connection_id?: string;
|
|
2501
|
+
message_thread_id?: number;
|
|
2502
|
+
duration?: number;
|
|
2503
|
+
width?: number;
|
|
2504
|
+
height?: number;
|
|
2505
|
+
thumbnail?: InputFile | string;
|
|
2506
|
+
caption?: string;
|
|
2507
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2508
|
+
caption_entities?: MessageEntity[];
|
|
2509
|
+
show_caption_above_media?: boolean;
|
|
2510
|
+
has_spoiler?: boolean;
|
|
2511
|
+
disable_notification?: boolean;
|
|
2512
|
+
protect_content?: boolean;
|
|
2513
|
+
allow_paid_broadcast?: boolean;
|
|
2514
|
+
message_effect_id?: string;
|
|
2515
|
+
reply_parameters?: ReplyParameters;
|
|
2516
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2517
|
+
}
|
|
2518
|
+
interface SendAudioInput {
|
|
2519
|
+
chat_id: number | string;
|
|
2520
|
+
audio: InputFile | string;
|
|
2521
|
+
business_connection_id?: string;
|
|
2522
|
+
message_thread_id?: number;
|
|
2523
|
+
caption?: string;
|
|
2524
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2525
|
+
caption_entities?: MessageEntity[];
|
|
2526
|
+
duration?: number;
|
|
2527
|
+
performer?: string;
|
|
2528
|
+
title?: string;
|
|
2529
|
+
thumbnail?: InputFile | string;
|
|
2530
|
+
disable_notification?: boolean;
|
|
2531
|
+
protect_content?: boolean;
|
|
2532
|
+
allow_paid_broadcast?: boolean;
|
|
2533
|
+
message_effect_id?: string;
|
|
2534
|
+
reply_parameters?: ReplyParameters;
|
|
2535
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2536
|
+
}
|
|
2537
|
+
interface SendChatActionInput {
|
|
2538
|
+
chat_id: number | string;
|
|
2539
|
+
action: "typing" | "upload_photo" | "record_video" | "upload_video" | "record_voice" | "upload_voice" | "upload_document" | "choose_sticker" | "find_location" | "record_video_note" | "upload_video_note";
|
|
2540
|
+
business_connection_id?: string;
|
|
2541
|
+
message_thread_id?: number;
|
|
2542
|
+
}
|
|
2543
|
+
interface SendContactInput {
|
|
2544
|
+
chat_id: number | string;
|
|
2545
|
+
phone_number: string;
|
|
2546
|
+
first_name: string;
|
|
2547
|
+
business_connection_id?: string;
|
|
2548
|
+
message_thread_id?: number;
|
|
2549
|
+
last_name?: string;
|
|
2550
|
+
vcard?: string;
|
|
2551
|
+
disable_notification?: boolean;
|
|
2552
|
+
protect_content?: boolean;
|
|
2553
|
+
allow_paid_broadcast?: boolean;
|
|
2554
|
+
message_effect_id?: string;
|
|
2555
|
+
reply_parameters?: ReplyParameters;
|
|
2556
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2557
|
+
}
|
|
2558
|
+
interface SendDiceInput {
|
|
2559
|
+
chat_id: number | string;
|
|
2560
|
+
business_connection_id?: string;
|
|
2561
|
+
message_thread_id?: number;
|
|
2562
|
+
emoji?: "🎲" | "🎯" | "🏀" | "⚽" | "🎳" | "🎰";
|
|
2563
|
+
disable_notification?: boolean;
|
|
2564
|
+
protect_content?: boolean;
|
|
2565
|
+
allow_paid_broadcast?: boolean;
|
|
2566
|
+
message_effect_id?: string;
|
|
2567
|
+
reply_parameters?: ReplyParameters;
|
|
2568
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2569
|
+
}
|
|
2570
|
+
interface SendDocumentInput {
|
|
2571
|
+
chat_id: number | string;
|
|
2572
|
+
document: InputFile | string;
|
|
2573
|
+
business_connection_id?: string;
|
|
2574
|
+
message_thread_id?: number;
|
|
2575
|
+
thumbnail?: InputFile | string;
|
|
2576
|
+
caption?: string;
|
|
2577
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2578
|
+
caption_entities?: MessageEntity[];
|
|
2579
|
+
disable_content_type_detection?: boolean;
|
|
2580
|
+
disable_notification?: boolean;
|
|
2581
|
+
protect_content?: boolean;
|
|
2582
|
+
allow_paid_broadcast?: boolean;
|
|
2583
|
+
message_effect_id?: string;
|
|
2584
|
+
reply_parameters?: ReplyParameters;
|
|
2585
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2586
|
+
}
|
|
2587
|
+
interface SendGameInput {
|
|
2588
|
+
chat_id: number;
|
|
2589
|
+
game_short_name: string;
|
|
2590
|
+
business_connection_id?: string;
|
|
2591
|
+
message_thread_id?: number;
|
|
2592
|
+
disable_notification?: boolean;
|
|
2593
|
+
protect_content?: boolean;
|
|
2594
|
+
allow_paid_broadcast?: boolean;
|
|
2595
|
+
message_effect_id?: string;
|
|
2596
|
+
reply_parameters?: ReplyParameters;
|
|
2597
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2598
|
+
}
|
|
2599
|
+
interface SendGiftInput {
|
|
2600
|
+
gift_id: string;
|
|
2601
|
+
user_id?: number;
|
|
2602
|
+
chat_id?: number | string;
|
|
2603
|
+
pay_for_upgrade?: boolean;
|
|
2604
|
+
text?: string;
|
|
2605
|
+
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
2606
|
+
text_entities?: MessageEntity[];
|
|
2607
|
+
}
|
|
2608
|
+
interface SendInvoiceInput {
|
|
2609
|
+
chat_id: number | string;
|
|
2610
|
+
title: string;
|
|
2611
|
+
description: string;
|
|
2612
|
+
payload: string;
|
|
2613
|
+
currency: string;
|
|
2614
|
+
prices: LabeledPrice[];
|
|
2615
|
+
message_thread_id?: number;
|
|
2616
|
+
provider_token?: string;
|
|
2617
|
+
max_tip_amount?: number;
|
|
2618
|
+
suggested_tip_amounts?: number[];
|
|
2619
|
+
start_parameter?: string;
|
|
2620
|
+
provider_data?: string;
|
|
2621
|
+
photo_url?: string;
|
|
2622
|
+
photo_size?: number;
|
|
2623
|
+
photo_width?: number;
|
|
2624
|
+
photo_height?: number;
|
|
2625
|
+
need_name?: boolean;
|
|
2626
|
+
need_phone_number?: boolean;
|
|
2627
|
+
need_email?: boolean;
|
|
2628
|
+
need_shipping_address?: boolean;
|
|
2629
|
+
send_phone_number_to_provider?: boolean;
|
|
2630
|
+
send_email_to_provider?: boolean;
|
|
2631
|
+
is_flexible?: boolean;
|
|
2632
|
+
disable_notification?: boolean;
|
|
2633
|
+
protect_content?: boolean;
|
|
2634
|
+
allow_paid_broadcast?: boolean;
|
|
2635
|
+
message_effect_id?: string;
|
|
2636
|
+
reply_parameters?: ReplyParameters;
|
|
2637
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2638
|
+
}
|
|
2639
|
+
interface SendLocationInput {
|
|
2640
|
+
chat_id: number | string;
|
|
2641
|
+
latitude: number;
|
|
2642
|
+
longitude: number;
|
|
2643
|
+
business_connection_id?: string;
|
|
2644
|
+
message_thread_id?: number;
|
|
2645
|
+
horizontal_accuracy?: number;
|
|
2646
|
+
live_period?: number;
|
|
2647
|
+
heading?: number;
|
|
2648
|
+
proximity_alert_radius?: number;
|
|
2649
|
+
disable_notification?: boolean;
|
|
2650
|
+
protect_content?: boolean;
|
|
2651
|
+
allow_paid_broadcast?: boolean;
|
|
2652
|
+
message_effect_id?: string;
|
|
2653
|
+
reply_parameters?: ReplyParameters;
|
|
2654
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2655
|
+
}
|
|
2656
|
+
interface SendMediaGroupInput {
|
|
2657
|
+
chat_id: number | string;
|
|
2658
|
+
media: (InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo)[];
|
|
2659
|
+
business_connection_id?: string;
|
|
2660
|
+
message_thread_id?: number;
|
|
2661
|
+
disable_notification?: boolean;
|
|
2662
|
+
protect_content?: boolean;
|
|
2663
|
+
allow_paid_broadcast?: boolean;
|
|
2664
|
+
message_effect_id?: string;
|
|
2665
|
+
reply_parameters?: ReplyParameters;
|
|
2666
|
+
}
|
|
2667
|
+
interface SendMessageInput {
|
|
2668
|
+
chat_id: number | string;
|
|
2669
|
+
text: string;
|
|
2670
|
+
business_connection_id?: string;
|
|
2671
|
+
message_thread_id?: number;
|
|
2672
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2673
|
+
entities?: MessageEntity[];
|
|
2674
|
+
link_preview_options?: LinkPreviewOptions;
|
|
2675
|
+
disable_notification?: boolean;
|
|
2676
|
+
protect_content?: boolean;
|
|
2677
|
+
allow_paid_broadcast?: boolean;
|
|
2678
|
+
message_effect_id?: string;
|
|
2679
|
+
reply_parameters?: ReplyParameters;
|
|
2680
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2681
|
+
}
|
|
2682
|
+
interface SendPaidMediaInput {
|
|
2683
|
+
chat_id: number | string;
|
|
2684
|
+
star_count: number;
|
|
2685
|
+
media: InputPaidMedia[];
|
|
2686
|
+
business_connection_id?: string;
|
|
2687
|
+
payload?: string;
|
|
2688
|
+
caption?: string;
|
|
2689
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2690
|
+
caption_entities?: MessageEntity[];
|
|
2691
|
+
show_caption_above_media?: boolean;
|
|
2692
|
+
disable_notification?: boolean;
|
|
2693
|
+
protect_content?: boolean;
|
|
2694
|
+
allow_paid_broadcast?: boolean;
|
|
2695
|
+
reply_parameters?: ReplyParameters;
|
|
2696
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2697
|
+
}
|
|
2698
|
+
interface SendPhotoInput {
|
|
2699
|
+
chat_id: number | string;
|
|
2700
|
+
photo: InputFile | string;
|
|
2701
|
+
business_connection_id?: string;
|
|
2702
|
+
message_thread_id?: number;
|
|
2703
|
+
caption?: string;
|
|
2704
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2705
|
+
caption_entities?: MessageEntity[];
|
|
2706
|
+
show_caption_above_media?: boolean;
|
|
2707
|
+
has_spoiler?: boolean;
|
|
2708
|
+
disable_notification?: boolean;
|
|
2709
|
+
protect_content?: boolean;
|
|
2710
|
+
allow_paid_broadcast?: boolean;
|
|
2711
|
+
message_effect_id?: string;
|
|
2712
|
+
reply_parameters?: ReplyParameters;
|
|
2713
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2714
|
+
}
|
|
2715
|
+
interface SendPollInput {
|
|
2716
|
+
chat_id: number | string;
|
|
2717
|
+
question: string;
|
|
2718
|
+
options: InputPollOption[];
|
|
2719
|
+
business_connection_id?: string;
|
|
2720
|
+
message_thread_id?: number;
|
|
2721
|
+
question_parse_mode?: "HTML" | "MarkdownV2";
|
|
2722
|
+
question_entities?: MessageEntity[];
|
|
2723
|
+
is_anonymous?: boolean;
|
|
2724
|
+
type?: string;
|
|
2725
|
+
allows_multiple_answers?: boolean;
|
|
2726
|
+
correct_option_id?: number;
|
|
2727
|
+
explanation?: string;
|
|
2728
|
+
explanation_parse_mode?: "HTML" | "MarkdownV2";
|
|
2729
|
+
explanation_entities?: MessageEntity[];
|
|
2730
|
+
open_period?: number;
|
|
2731
|
+
close_date?: number;
|
|
2732
|
+
is_closed?: boolean;
|
|
2733
|
+
disable_notification?: boolean;
|
|
2734
|
+
protect_content?: boolean;
|
|
2735
|
+
allow_paid_broadcast?: boolean;
|
|
2736
|
+
message_effect_id?: string;
|
|
2737
|
+
reply_parameters?: ReplyParameters;
|
|
2738
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2739
|
+
}
|
|
2740
|
+
interface SendStickerInput {
|
|
2741
|
+
chat_id: number | string;
|
|
2742
|
+
sticker: InputFile | string;
|
|
2743
|
+
business_connection_id?: string;
|
|
2744
|
+
message_thread_id?: number;
|
|
2745
|
+
emoji?: string;
|
|
2746
|
+
disable_notification?: boolean;
|
|
2747
|
+
protect_content?: boolean;
|
|
2748
|
+
allow_paid_broadcast?: boolean;
|
|
2749
|
+
message_effect_id?: string;
|
|
2750
|
+
reply_parameters?: ReplyParameters;
|
|
2751
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2752
|
+
}
|
|
2753
|
+
interface SendVenueInput {
|
|
2754
|
+
chat_id: number | string;
|
|
2755
|
+
latitude: number;
|
|
2756
|
+
longitude: number;
|
|
2757
|
+
title: string;
|
|
2758
|
+
address: string;
|
|
2759
|
+
business_connection_id?: string;
|
|
2760
|
+
message_thread_id?: number;
|
|
2761
|
+
foursquare_id?: string;
|
|
2762
|
+
foursquare_type?: string;
|
|
2763
|
+
google_place_id?: string;
|
|
2764
|
+
google_place_type?: string;
|
|
2765
|
+
disable_notification?: boolean;
|
|
2766
|
+
protect_content?: boolean;
|
|
2767
|
+
allow_paid_broadcast?: boolean;
|
|
2768
|
+
message_effect_id?: string;
|
|
2769
|
+
reply_parameters?: ReplyParameters;
|
|
2770
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2771
|
+
}
|
|
2772
|
+
interface SendVideoInput {
|
|
2773
|
+
chat_id: number | string;
|
|
2774
|
+
video: InputFile | string;
|
|
2775
|
+
business_connection_id?: string;
|
|
2776
|
+
message_thread_id?: number;
|
|
2777
|
+
duration?: number;
|
|
2778
|
+
width?: number;
|
|
2779
|
+
height?: number;
|
|
2780
|
+
thumbnail?: InputFile | string;
|
|
2781
|
+
cover?: InputFile | string;
|
|
2782
|
+
start_timestamp?: number;
|
|
2783
|
+
caption?: string;
|
|
2784
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2785
|
+
caption_entities?: MessageEntity[];
|
|
2786
|
+
show_caption_above_media?: boolean;
|
|
2787
|
+
has_spoiler?: boolean;
|
|
2788
|
+
supports_streaming?: boolean;
|
|
2789
|
+
disable_notification?: boolean;
|
|
2790
|
+
protect_content?: boolean;
|
|
2791
|
+
allow_paid_broadcast?: boolean;
|
|
2792
|
+
message_effect_id?: string;
|
|
2793
|
+
reply_parameters?: ReplyParameters;
|
|
2794
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2795
|
+
}
|
|
2796
|
+
interface SendVideoNoteInput {
|
|
2797
|
+
chat_id: number | string;
|
|
2798
|
+
video_note: InputFile | string;
|
|
2799
|
+
business_connection_id?: string;
|
|
2800
|
+
message_thread_id?: number;
|
|
2801
|
+
duration?: number;
|
|
2802
|
+
length?: number;
|
|
2803
|
+
thumbnail?: InputFile | string;
|
|
2804
|
+
disable_notification?: boolean;
|
|
2805
|
+
protect_content?: boolean;
|
|
2806
|
+
allow_paid_broadcast?: boolean;
|
|
2807
|
+
message_effect_id?: string;
|
|
2808
|
+
reply_parameters?: ReplyParameters;
|
|
2809
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2810
|
+
}
|
|
2811
|
+
interface SendVoiceInput {
|
|
2812
|
+
chat_id: number | string;
|
|
2813
|
+
voice: InputFile | string;
|
|
2814
|
+
business_connection_id?: string;
|
|
2815
|
+
message_thread_id?: number;
|
|
2816
|
+
caption?: string;
|
|
2817
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2818
|
+
caption_entities?: MessageEntity[];
|
|
2819
|
+
duration?: number;
|
|
2820
|
+
disable_notification?: boolean;
|
|
2821
|
+
protect_content?: boolean;
|
|
2822
|
+
allow_paid_broadcast?: boolean;
|
|
2823
|
+
message_effect_id?: string;
|
|
2824
|
+
reply_parameters?: ReplyParameters;
|
|
2825
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2826
|
+
}
|
|
2827
|
+
interface SetBusinessAccountBioInput {
|
|
2828
|
+
business_connection_id: string;
|
|
2829
|
+
bio?: string;
|
|
2830
|
+
}
|
|
2831
|
+
interface SetBusinessAccountGiftSettingsInput {
|
|
2832
|
+
business_connection_id: string;
|
|
2833
|
+
show_gift_button: boolean;
|
|
2834
|
+
accepted_gift_types: AcceptedGiftTypes;
|
|
2835
|
+
}
|
|
2836
|
+
interface SetBusinessAccountNameInput {
|
|
2837
|
+
business_connection_id: string;
|
|
2838
|
+
first_name: string;
|
|
2839
|
+
last_name?: string;
|
|
2840
|
+
}
|
|
2841
|
+
interface SetBusinessAccountProfilePhotoInput {
|
|
2842
|
+
business_connection_id: string;
|
|
2843
|
+
photo: InputProfilePhoto;
|
|
2844
|
+
is_public?: boolean;
|
|
2845
|
+
}
|
|
2846
|
+
interface SetBusinessAccountUsernameInput {
|
|
2847
|
+
business_connection_id: string;
|
|
2848
|
+
username?: string;
|
|
2849
|
+
}
|
|
2850
|
+
interface SetChatAdministratorCustomTitleInput {
|
|
2851
|
+
chat_id: number | string;
|
|
2852
|
+
user_id: number;
|
|
2853
|
+
custom_title: string;
|
|
2854
|
+
}
|
|
2855
|
+
interface SetChatDescriptionInput {
|
|
2856
|
+
chat_id: number | string;
|
|
2857
|
+
description?: string;
|
|
2858
|
+
}
|
|
2859
|
+
interface SetChatMenuButtonInput {
|
|
2860
|
+
chat_id?: number;
|
|
2861
|
+
menu_button?: MenuButton;
|
|
2862
|
+
}
|
|
2863
|
+
interface SetChatPermissionsInput {
|
|
2864
|
+
chat_id: number | string;
|
|
2865
|
+
permissions: ChatPermissions;
|
|
2866
|
+
use_independent_chat_permissions?: boolean;
|
|
2867
|
+
}
|
|
2868
|
+
interface SetChatPhotoInput {
|
|
2869
|
+
chat_id: number | string;
|
|
2870
|
+
photo: InputFile;
|
|
2871
|
+
}
|
|
2872
|
+
interface SetChatStickerSetInput {
|
|
2873
|
+
chat_id: number | string;
|
|
2874
|
+
sticker_set_name: string;
|
|
2875
|
+
}
|
|
2876
|
+
interface SetChatTitleInput {
|
|
2877
|
+
chat_id: number | string;
|
|
2878
|
+
title: string;
|
|
2879
|
+
}
|
|
2880
|
+
interface SetCustomEmojiStickerSetThumbnailInput {
|
|
2881
|
+
name: string;
|
|
2882
|
+
custom_emoji_id?: string;
|
|
2883
|
+
}
|
|
2884
|
+
interface SetGameScoreInput {
|
|
2885
|
+
user_id: number;
|
|
2886
|
+
score: number;
|
|
2887
|
+
force?: boolean;
|
|
2888
|
+
disable_edit_message?: boolean;
|
|
2889
|
+
chat_id?: number;
|
|
2890
|
+
message_id?: number;
|
|
2891
|
+
inline_message_id?: string;
|
|
2892
|
+
}
|
|
2893
|
+
interface SetMessageReactionInput {
|
|
2894
|
+
chat_id: number | string;
|
|
2895
|
+
message_id: number;
|
|
2896
|
+
reaction?: ReactionType[];
|
|
2897
|
+
is_big?: boolean;
|
|
2898
|
+
}
|
|
2899
|
+
interface SetMyCommandsInput {
|
|
2900
|
+
commands: BotCommand[];
|
|
2901
|
+
scope?: BotCommandScope;
|
|
2902
|
+
language_code?: string;
|
|
2903
|
+
}
|
|
2904
|
+
interface SetMyDefaultAdministratorRightsInput {
|
|
2905
|
+
rights?: ChatAdministratorRights;
|
|
2906
|
+
for_channels?: boolean;
|
|
2907
|
+
}
|
|
2908
|
+
interface SetMyDescriptionInput {
|
|
2909
|
+
description?: string;
|
|
2910
|
+
language_code?: string;
|
|
2911
|
+
}
|
|
2912
|
+
interface SetMyNameInput {
|
|
2913
|
+
name?: string;
|
|
2914
|
+
language_code?: string;
|
|
2915
|
+
}
|
|
2916
|
+
interface SetMyShortDescriptionInput {
|
|
2917
|
+
short_description?: string;
|
|
2918
|
+
language_code?: string;
|
|
2919
|
+
}
|
|
2920
|
+
interface SetPassportDataErrorsInput {
|
|
2921
|
+
user_id: number;
|
|
2922
|
+
errors: PassportElementError[];
|
|
2923
|
+
}
|
|
2924
|
+
interface SetStickerEmojiListInput {
|
|
2925
|
+
sticker: string;
|
|
2926
|
+
emoji_list: string[];
|
|
2927
|
+
}
|
|
2928
|
+
interface SetStickerKeywordsInput {
|
|
2929
|
+
sticker: string;
|
|
2930
|
+
keywords?: string[];
|
|
2931
|
+
}
|
|
2932
|
+
interface SetStickerMaskPositionInput {
|
|
2933
|
+
sticker: string;
|
|
2934
|
+
mask_position?: MaskPosition;
|
|
2935
|
+
}
|
|
2936
|
+
interface SetStickerPositionInSetInput {
|
|
2937
|
+
sticker: string;
|
|
2938
|
+
position: number;
|
|
2939
|
+
}
|
|
2940
|
+
interface SetStickerSetThumbnailInput {
|
|
2941
|
+
name: string;
|
|
2942
|
+
user_id: number;
|
|
2943
|
+
format: "static" | "animated" | "video";
|
|
2944
|
+
thumbnail?: InputFile | string;
|
|
2945
|
+
}
|
|
2946
|
+
interface SetStickerSetTitleInput {
|
|
2947
|
+
name: string;
|
|
2948
|
+
title: string;
|
|
2949
|
+
}
|
|
2950
|
+
interface SetUserEmojiStatusInput {
|
|
2951
|
+
user_id: number;
|
|
2952
|
+
emoji_status_custom_emoji_id?: string;
|
|
2953
|
+
emoji_status_expiration_date?: number;
|
|
2954
|
+
}
|
|
2955
|
+
interface SetWebhookInput {
|
|
2956
|
+
url: string;
|
|
2957
|
+
certificate?: InputFile;
|
|
2958
|
+
ip_address?: string;
|
|
2959
|
+
max_connections?: number;
|
|
2960
|
+
allowed_updates?: AllowedUpdateName[];
|
|
2961
|
+
drop_pending_updates?: boolean;
|
|
2962
|
+
secret_token?: string;
|
|
2963
|
+
}
|
|
2964
|
+
interface StopMessageLiveLocationInput {
|
|
2965
|
+
business_connection_id?: string;
|
|
2966
|
+
chat_id?: number | string;
|
|
2967
|
+
message_id?: number;
|
|
2968
|
+
inline_message_id?: string;
|
|
2969
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2970
|
+
}
|
|
2971
|
+
interface StopPollInput {
|
|
2972
|
+
chat_id: number | string;
|
|
2973
|
+
message_id: number;
|
|
2974
|
+
business_connection_id?: string;
|
|
2975
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2976
|
+
}
|
|
2977
|
+
interface TransferBusinessAccountStarsInput {
|
|
2978
|
+
business_connection_id: string;
|
|
2979
|
+
star_count: number;
|
|
2980
|
+
}
|
|
2981
|
+
interface TransferGiftInput {
|
|
2982
|
+
business_connection_id: string;
|
|
2983
|
+
owned_gift_id: string;
|
|
2984
|
+
new_owner_chat_id: number;
|
|
2985
|
+
star_count?: number;
|
|
2986
|
+
}
|
|
2987
|
+
interface UnbanChatMemberInput {
|
|
2988
|
+
chat_id: number | string;
|
|
2989
|
+
user_id: number;
|
|
2990
|
+
only_if_banned?: boolean;
|
|
2991
|
+
}
|
|
2992
|
+
interface UnbanChatSenderChatInput {
|
|
2993
|
+
chat_id: number | string;
|
|
2994
|
+
sender_chat_id: number;
|
|
2995
|
+
}
|
|
2996
|
+
interface UnhideGeneralForumTopicInput {
|
|
2997
|
+
chat_id: number | string;
|
|
2998
|
+
}
|
|
2999
|
+
interface UnpinAllChatMessagesInput {
|
|
3000
|
+
chat_id: number | string;
|
|
3001
|
+
}
|
|
3002
|
+
interface UnpinAllForumTopicMessagesInput {
|
|
3003
|
+
chat_id: number | string;
|
|
3004
|
+
message_thread_id: number;
|
|
3005
|
+
}
|
|
3006
|
+
interface UnpinAllGeneralForumTopicMessagesInput {
|
|
3007
|
+
chat_id: number | string;
|
|
3008
|
+
}
|
|
3009
|
+
interface UnpinChatMessageInput {
|
|
3010
|
+
chat_id: number | string;
|
|
3011
|
+
business_connection_id?: string;
|
|
3012
|
+
message_id?: number;
|
|
3013
|
+
}
|
|
3014
|
+
interface UpgradeGiftInput {
|
|
3015
|
+
business_connection_id: string;
|
|
3016
|
+
owned_gift_id: string;
|
|
3017
|
+
keep_original_details?: boolean;
|
|
3018
|
+
star_count?: number;
|
|
3019
|
+
}
|
|
3020
|
+
interface UploadStickerFileInput {
|
|
3021
|
+
user_id: number;
|
|
3022
|
+
sticker: InputFile;
|
|
3023
|
+
sticker_format: "static" | "animated" | "video";
|
|
3024
|
+
}
|
|
3025
|
+
interface VerifyChatInput {
|
|
3026
|
+
chat_id: number | string;
|
|
3027
|
+
custom_description?: string;
|
|
3028
|
+
}
|
|
3029
|
+
interface VerifyUserInput {
|
|
3030
|
+
user_id: number;
|
|
3031
|
+
custom_description?: string;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
type ErrorReason = Readonly<{
|
|
3035
|
+
type: "NotOkResponse";
|
|
3036
|
+
errorCode?: number;
|
|
3037
|
+
details?: string;
|
|
3038
|
+
} | {
|
|
3039
|
+
type: "UnexpectedResponse";
|
|
3040
|
+
response: unknown;
|
|
3041
|
+
} | {
|
|
3042
|
+
type: "ClientInternalError";
|
|
3043
|
+
cause: unknown;
|
|
3044
|
+
} | {
|
|
3045
|
+
type: "UnableToGetFile";
|
|
3046
|
+
cause: unknown;
|
|
3047
|
+
} | {
|
|
3048
|
+
type: "BotHandlerError";
|
|
3049
|
+
cause: unknown;
|
|
3050
|
+
}>;
|
|
3051
|
+
declare const TgBotClientError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
3052
|
+
readonly _tag: "TgBotClientError";
|
|
3053
|
+
} & Readonly<A>;
|
|
3054
|
+
declare class TgBotClientError extends TgBotClientError_base<{
|
|
3055
|
+
cause: ErrorReason;
|
|
3056
|
+
}> {
|
|
3057
|
+
static readonly missingSuccess: TgBotClientError;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
declare const TgBotApiBaseUrl_base: Context.ReferenceClass<TgBotApiBaseUrl, "TgBotApiBaseUrl", string>;
|
|
3061
|
+
declare class TgBotApiBaseUrl extends TgBotApiBaseUrl_base {
|
|
3062
|
+
}
|
|
3063
|
+
declare const TgBotApiToken_base: Context.TagClass<TgBotApiToken, "TgBotApiToken", string>;
|
|
3064
|
+
declare class TgBotApiToken extends TgBotApiToken_base {
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
export { type GetBusinessAccountStarBalanceInput as $, type Api as A, type BanChatMemberInput as B, type CloseInput as C, type DeclineChatJoinRequestInput as D, type DeleteMyCommandsInput as E, type DeleteStickerFromSetInput as F, type DeleteStickerSetInput as G, type DeleteStoryInput as H, type DeleteWebhookInput as I, type EditChatInviteLinkInput as J, type EditChatSubscriptionInviteLinkInput as K, type EditForumTopicInput as L, type EditGeneralForumTopicInput as M, type EditMessageCaptionInput as N, type EditMessageLiveLocationInput as O, type EditMessageMediaInput as P, type EditMessageReplyMarkupInput as Q, type EditMessageTextInput as R, type EditStoryInput as S, TgBotClientError as T, type Update as U, type EditUserStarSubscriptionInput as V, type ExportChatInviteLinkInput as W, type ForwardMessageInput as X, type ForwardMessagesInput as Y, type GetAvailableGiftsInput as Z, type GetBusinessAccountGiftsInput as _, TgBotApiToken as a, type SetBusinessAccountProfilePhotoInput as a$, type GetBusinessConnectionInput as a0, type GetChatInput as a1, type GetChatAdministratorsInput as a2, type GetChatMemberInput as a3, type GetChatMemberCountInput as a4, type GetChatMenuButtonInput as a5, type GetCustomEmojiStickersInput as a6, type GetFileInput as a7, type GetForumTopicIconStickersInput as a8, type GetGameHighScoresInput as a9, type ReplaceStickerInSetInput as aA, type RestrictChatMemberInput as aB, type RevokeChatInviteLinkInput as aC, type SavePreparedInlineMessageInput as aD, type SendAnimationInput as aE, type SendAudioInput as aF, type SendChatActionInput as aG, type SendContactInput as aH, type SendDiceInput as aI, type SendDocumentInput as aJ, type SendGameInput as aK, type SendGiftInput as aL, type SendInvoiceInput as aM, type SendLocationInput as aN, type SendMediaGroupInput as aO, type SendMessageInput as aP, type SendPaidMediaInput as aQ, type SendPhotoInput as aR, type SendPollInput as aS, type SendStickerInput as aT, type SendVenueInput as aU, type SendVideoInput as aV, type SendVideoNoteInput as aW, type SendVoiceInput as aX, type SetBusinessAccountBioInput as aY, type SetBusinessAccountGiftSettingsInput as aZ, type SetBusinessAccountNameInput as a_, type GetMeInput as aa, type GetMyCommandsInput as ab, type GetMyDefaultAdministratorRightsInput as ac, type GetMyDescriptionInput as ad, type GetMyNameInput as ae, type GetMyShortDescriptionInput as af, type GetStarTransactionsInput as ag, type GetStickerSetInput as ah, type GetUpdatesInput as ai, type GetUserChatBoostsInput as aj, type GetUserProfilePhotosInput as ak, type GetWebhookInfoInput as al, type GiftPremiumSubscriptionInput as am, type HideGeneralForumTopicInput as an, type LeaveChatInput as ao, type LogOutInput as ap, type PinChatMessageInput as aq, type PostStoryInput as ar, type PromoteChatMemberInput as as, type ReadBusinessMessageInput as at, type RefundStarPaymentInput as au, type RemoveBusinessAccountProfilePhotoInput as av, type RemoveChatVerificationInput as aw, type RemoveUserVerificationInput as ax, type ReopenForumTopicInput as ay, type ReopenGeneralForumTopicInput as az, TgBotApiBaseUrl as b, type BotCommandScopeDefault as b$, type SetBusinessAccountUsernameInput as b0, type SetChatAdministratorCustomTitleInput as b1, type SetChatDescriptionInput as b2, type SetChatMenuButtonInput as b3, type SetChatPermissionsInput as b4, type SetChatPhotoInput as b5, type SetChatStickerSetInput as b6, type SetChatTitleInput as b7, type SetCustomEmojiStickerSetThumbnailInput as b8, type SetGameScoreInput as b9, type UpgradeGiftInput as bA, type UploadStickerFileInput as bB, type VerifyChatInput as bC, type VerifyUserInput as bD, type AllowedUpdateName as bE, type AcceptedGiftTypes as bF, type AffiliateInfo as bG, type Animation as bH, type Audio as bI, type BackgroundFill as bJ, type BackgroundFillFreeformGradient as bK, type BackgroundFillGradient as bL, type BackgroundFillSolid as bM, type BackgroundType as bN, type BackgroundTypeChatTheme as bO, type BackgroundTypeFill as bP, type BackgroundTypePattern as bQ, type BackgroundTypeWallpaper as bR, type Birthdate as bS, type BotCommand as bT, type BotCommandScope as bU, type BotCommandScopeAllChatAdministrators as bV, type BotCommandScopeAllGroupChats as bW, type BotCommandScopeAllPrivateChats as bX, type BotCommandScopeChat as bY, type BotCommandScopeChatAdministrators as bZ, type BotCommandScopeChatMember as b_, type SetMessageReactionInput as ba, type SetMyCommandsInput as bb, type SetMyDefaultAdministratorRightsInput as bc, type SetMyDescriptionInput as bd, type SetMyNameInput as be, type SetMyShortDescriptionInput as bf, type SetPassportDataErrorsInput as bg, type SetStickerEmojiListInput as bh, type SetStickerKeywordsInput as bi, type SetStickerMaskPositionInput as bj, type SetStickerPositionInSetInput as bk, type SetStickerSetThumbnailInput as bl, type SetStickerSetTitleInput as bm, type SetUserEmojiStatusInput as bn, type SetWebhookInput as bo, type StopMessageLiveLocationInput as bp, type StopPollInput as bq, type TransferBusinessAccountStarsInput as br, type TransferGiftInput as bs, type UnbanChatMemberInput as bt, type UnbanChatSenderChatInput as bu, type UnhideGeneralForumTopicInput as bv, type UnpinAllChatMessagesInput as bw, type UnpinAllForumTopicMessagesInput as bx, type UnpinAllGeneralForumTopicMessagesInput as by, type UnpinChatMessageInput as bz, type AddStickerToSetInput as c, type GiveawayWinners as c$, type BotDescription as c0, type BotName as c1, type BotShortDescription as c2, type BusinessBotRights as c3, type BusinessConnection as c4, type BusinessIntro as c5, type BusinessLocation as c6, type BusinessMessagesDeleted as c7, type BusinessOpeningHours as c8, type BusinessOpeningHoursInterval as c9, type ChatPhoto as cA, type ChatShared as cB, type ChosenInlineResult as cC, type Contact as cD, type CopyTextButton as cE, type Dice as cF, type Document as cG, type EncryptedCredentials as cH, type EncryptedPassportElement as cI, type ExternalReplyInfo as cJ, type File as cK, type ForceReply as cL, type ForumTopic as cM, type ForumTopicClosed as cN, type ForumTopicCreated as cO, type ForumTopicEdited as cP, type ForumTopicReopened as cQ, type Game as cR, type GameHighScore as cS, type GeneralForumTopicHidden as cT, type GeneralForumTopicUnhidden as cU, type Gift as cV, type GiftInfo as cW, type Gifts as cX, type Giveaway as cY, type GiveawayCompleted as cZ, type GiveawayCreated as c_, type CallbackGame as ca, type CallbackQuery as cb, type Chat as cc, type ChatAdministratorRights as cd, type ChatBackground as ce, type ChatBoost as cf, type ChatBoostAdded as cg, type ChatBoostRemoved as ch, type ChatBoostSource as ci, type ChatBoostSourceGiftCode as cj, type ChatBoostSourceGiveaway as ck, type ChatBoostSourcePremium as cl, type ChatBoostUpdated as cm, type ChatFullInfo as cn, type ChatInviteLink as co, type ChatJoinRequest as cp, type ChatLocation as cq, type ChatMember as cr, type ChatMemberAdministrator as cs, type ChatMemberBanned as ct, type ChatMemberLeft as cu, type ChatMemberMember as cv, type ChatMemberOwner as cw, type ChatMemberRestricted as cx, type ChatMemberUpdated as cy, type ChatPermissions as cz, type AnswerCallbackQueryInput as d, type MenuButton as d$, type InaccessibleMessage as d0, type InlineKeyboardButton as d1, type InlineKeyboardMarkup as d2, type InlineQuery as d3, type InlineQueryResult as d4, type InlineQueryResultArticle as d5, type InlineQueryResultAudio as d6, type InlineQueryResultCachedAudio as d7, type InlineQueryResultCachedDocument as d8, type InlineQueryResultCachedGif as d9, type InputMediaVideo as dA, type InputMessageContent as dB, type InputPaidMedia as dC, type InputPaidMediaPhoto as dD, type InputPaidMediaVideo as dE, type InputPollOption as dF, type InputProfilePhoto as dG, type InputProfilePhotoAnimated as dH, type InputProfilePhotoStatic as dI, type InputSticker as dJ, type InputStoryContent as dK, type InputStoryContentPhoto as dL, type InputStoryContentVideo as dM, type InputTextMessageContent as dN, type InputVenueMessageContent as dO, type Invoice as dP, type KeyboardButton as dQ, type KeyboardButtonPollType as dR, type KeyboardButtonRequestChat as dS, type KeyboardButtonRequestUsers as dT, type LabeledPrice as dU, type LinkPreviewOptions as dV, type Location as dW, type LocationAddress as dX, type LoginUrl as dY, type MaskPosition as dZ, type MaybeInaccessibleMessage as d_, type InlineQueryResultCachedMpeg4Gif as da, type InlineQueryResultCachedPhoto as db, type InlineQueryResultCachedSticker as dc, type InlineQueryResultCachedVideo as dd, type InlineQueryResultCachedVoice as de, type InlineQueryResultContact as df, type InlineQueryResultDocument as dg, type InlineQueryResultGame as dh, type InlineQueryResultGif as di, type InlineQueryResultLocation as dj, type InlineQueryResultMpeg4Gif as dk, type InlineQueryResultPhoto as dl, type InlineQueryResultsButton as dm, type InlineQueryResultVenue as dn, type InlineQueryResultVideo as dp, type InlineQueryResultVoice as dq, type InputContactMessageContent as dr, type InputFile as ds, type InputInvoiceMessageContent as dt, type InputLocationMessageContent as du, type InputMedia as dv, type InputMediaAnimation as dw, type InputMediaAudio as dx, type InputMediaDocument as dy, type InputMediaPhoto as dz, type AnswerInlineQueryInput as e, type ShippingQuery as e$, type MenuButtonCommands as e0, type MenuButtonDefault as e1, type MenuButtonWebApp as e2, type Message as e3, type MessageAutoDeleteTimerChanged as e4, type MessageEntity as e5, type MessageId as e6, type MessageOrigin as e7, type MessageOriginChannel as e8, type MessageOriginChat as e9, type PassportElementErrorUnspecified as eA, type PassportFile as eB, type PhotoSize as eC, type Poll as eD, type PollAnswer as eE, type PollOption as eF, type PreCheckoutQuery as eG, type PreparedInlineMessage as eH, type ProximityAlertTriggered as eI, type ReactionCount as eJ, type ReactionType as eK, type ReactionTypeCustomEmoji as eL, type ReactionTypeEmoji as eM, type ReactionTypePaid as eN, type RefundedPayment as eO, type ReplyKeyboardMarkup as eP, type ReplyKeyboardRemove as eQ, type ReplyParameters as eR, type ResponseParameters as eS, type RevenueWithdrawalState as eT, type RevenueWithdrawalStateFailed as eU, type RevenueWithdrawalStatePending as eV, type RevenueWithdrawalStateSucceeded as eW, type SentWebAppMessage as eX, type SharedUser as eY, type ShippingAddress as eZ, type ShippingOption as e_, type MessageOriginHiddenUser as ea, type MessageOriginUser as eb, type MessageReactionCountUpdated as ec, type MessageReactionUpdated as ed, type OrderInfo as ee, type OwnedGift as ef, type OwnedGiftRegular as eg, type OwnedGifts as eh, type OwnedGiftUnique as ei, type PaidMedia as ej, type PaidMediaInfo as ek, type PaidMediaPhoto as el, type PaidMediaPreview as em, type PaidMediaPurchased as en, type PaidMediaVideo as eo, type PaidMessagePriceChanged as ep, type PassportData as eq, type PassportElementError as er, type PassportElementErrorDataField as es, type PassportElementErrorFile as et, type PassportElementErrorFiles as eu, type PassportElementErrorFrontSide as ev, type PassportElementErrorReverseSide as ew, type PassportElementErrorSelfie as ex, type PassportElementErrorTranslationFile as ey, type PassportElementErrorTranslationFiles as ez, type AnswerPreCheckoutQueryInput as f, type StarAmount as f0, type StarTransaction as f1, type StarTransactions as f2, type Sticker as f3, type StickerSet as f4, type Story as f5, type StoryArea as f6, type StoryAreaPosition as f7, type StoryAreaType as f8, type StoryAreaTypeLink as f9, type Video as fA, type VideoChatEnded as fB, type VideoChatParticipantsInvited as fC, type VideoChatScheduled as fD, type VideoChatStarted as fE, type VideoNote as fF, type Voice as fG, type WebAppData as fH, type WebAppInfo as fI, type WebhookInfo as fJ, type WriteAccessAllowed as fK, type StoryAreaTypeLocation as fa, type StoryAreaTypeSuggestedReaction as fb, type StoryAreaTypeUniqueGift as fc, type StoryAreaTypeWeather as fd, type SuccessfulPayment as fe, type SwitchInlineQueryChosenChat as ff, type TextQuote as fg, type TransactionPartner as fh, type TransactionPartnerAffiliateProgram as fi, type TransactionPartnerChat as fj, type TransactionPartnerFragment as fk, type TransactionPartnerOther as fl, type TransactionPartnerTelegramAds as fm, type TransactionPartnerTelegramApi as fn, type TransactionPartnerUser as fo, type UniqueGift as fp, type UniqueGiftBackdrop as fq, type UniqueGiftBackdropColors as fr, type UniqueGiftInfo as fs, type UniqueGiftModel as ft, type UniqueGiftSymbol as fu, type User as fv, type UserChatBoosts as fw, type UserProfilePhotos as fx, type UsersShared as fy, type Venue as fz, type AnswerShippingQueryInput as g, type AnswerWebAppQueryInput as h, type ApproveChatJoinRequestInput as i, type BanChatSenderChatInput as j, type CloseForumTopicInput as k, type CloseGeneralForumTopicInput as l, type ConvertGiftToStarsInput as m, type CopyMessageInput as n, type CopyMessagesInput as o, type CreateChatInviteLinkInput as p, type CreateChatSubscriptionInviteLinkInput as q, type CreateForumTopicInput as r, type CreateInvoiceLinkInput as s, type CreateNewStickerSetInput as t, type DeleteBusinessMessagesInput as u, type DeleteChatPhotoInput as v, type DeleteChatStickerSetInput as w, type DeleteForumTopicInput as x, type DeleteMessageInput as y, type DeleteMessagesInput as z };
|