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