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