@effect-ak/tg-bot-api 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +17 -0
- package/dist/index.d.ts +3600 -0
- package/dist/index.js +0 -0
- package/package.json +44 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3600 @@
|
|
|
1
|
+
interface WebApp {
|
|
2
|
+
initData: string;
|
|
3
|
+
initDataUnsafe: WebAppInitData;
|
|
4
|
+
version: string;
|
|
5
|
+
platform: string;
|
|
6
|
+
colorScheme: string;
|
|
7
|
+
themeParams: ThemeParams;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
isExpanded: boolean;
|
|
10
|
+
viewportHeight: number;
|
|
11
|
+
viewportStableHeight: number;
|
|
12
|
+
headerColor: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
bottomBarColor: string;
|
|
15
|
+
isClosingConfirmationEnabled: boolean;
|
|
16
|
+
isVerticalSwipesEnabled: boolean;
|
|
17
|
+
isFullscreen: boolean;
|
|
18
|
+
isOrientationLocked: boolean;
|
|
19
|
+
safeAreaInset: SafeAreaInset;
|
|
20
|
+
contentSafeAreaInset: ContentSafeAreaInset;
|
|
21
|
+
BackButton: BackButton;
|
|
22
|
+
MainButton: BottomButton;
|
|
23
|
+
SecondaryButton: BottomButton;
|
|
24
|
+
SettingsButton: SettingsButton;
|
|
25
|
+
HapticFeedback: HapticFeedback;
|
|
26
|
+
CloudStorage: CloudStorage;
|
|
27
|
+
BiometricManager: BiometricManager;
|
|
28
|
+
Accelerometer: Accelerometer;
|
|
29
|
+
DeviceOrientation: DeviceOrientation;
|
|
30
|
+
Gyroscope: Gyroscope;
|
|
31
|
+
LocationManager: LocationManager;
|
|
32
|
+
DeviceStorage: DeviceStorage;
|
|
33
|
+
SecureStorage: SecureStorage;
|
|
34
|
+
isVersionAtLeast: (version: string) => boolean;
|
|
35
|
+
setHeaderColor: (color: string) => void;
|
|
36
|
+
setBackgroundColor: (color: string) => void;
|
|
37
|
+
setBottomBarColor: (color: string) => void;
|
|
38
|
+
enableClosingConfirmation: () => void;
|
|
39
|
+
disableClosingConfirmation: () => void;
|
|
40
|
+
enableVerticalSwipes: () => void;
|
|
41
|
+
disableVerticalSwipes: () => void;
|
|
42
|
+
requestFullscreen: () => void;
|
|
43
|
+
exitFullscreen: () => void;
|
|
44
|
+
lockOrientation: () => void;
|
|
45
|
+
unlockOrientation: () => void;
|
|
46
|
+
addToHomeScreen: () => void;
|
|
47
|
+
checkHomeScreenStatus: (callback?: (status: "unsupported" | "unknown" | "added" | "missed") => void) => void;
|
|
48
|
+
onEvent: BindOrUnbindEventHandler;
|
|
49
|
+
offEvent: BindOrUnbindEventHandler;
|
|
50
|
+
sendData: (data: string) => void;
|
|
51
|
+
switchInlineQuery: (query: string, chat_type?: "users" | "bots" | "groups" | "channels") => void;
|
|
52
|
+
openLink: (url: string, options?: {
|
|
53
|
+
try_instant_view: boolean;
|
|
54
|
+
}) => void;
|
|
55
|
+
openTelegramLink: (url: string) => void;
|
|
56
|
+
openInvoice: (url: string, callback?: (invoiceStatus: unknown) => void) => void;
|
|
57
|
+
shareToStory: (mediaUrl: string, options?: StoryShareParams) => void;
|
|
58
|
+
shareMessage: (msg_id: number, options?: (isSent: boolean) => void) => void;
|
|
59
|
+
setEmojiStatus: (custom_emoj_id: string, params?: EmojiStatusParams, callback?: (isStatusSet: boolean) => void) => void;
|
|
60
|
+
requestEmojiStatusAccess: (url: string, callback?: (invoiceStatus: unknown) => void) => void;
|
|
61
|
+
downloadFile: (params: DownloadFileParams, callback?: (isAccepted: boolean) => void) => void;
|
|
62
|
+
hideKeyboard: () => void;
|
|
63
|
+
showPopup: (params: PopupParams, callback?: (buttonId: string) => void) => void;
|
|
64
|
+
showAlert: (message: string, callback?: () => void) => void;
|
|
65
|
+
showConfirm: (message: string, callback?: (isOk: boolean) => void) => void;
|
|
66
|
+
showScanQrPopup: (params: ScanQrPopupParams, callback?: (data: string) => boolean) => void;
|
|
67
|
+
closeScanQrPopup: () => void;
|
|
68
|
+
readTextFromClipboard: (callback?: (text: string) => void) => void;
|
|
69
|
+
requestWriteAccess: (callback?: (isGranted: boolean) => void) => void;
|
|
70
|
+
requestContact: (callback?: (isShared: boolean) => void) => void;
|
|
71
|
+
ready: () => void;
|
|
72
|
+
expand: () => void;
|
|
73
|
+
close: () => void;
|
|
74
|
+
}
|
|
75
|
+
interface Accelerometer {
|
|
76
|
+
isStarted: boolean;
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
z: number;
|
|
80
|
+
start: (params: AccelerometerStartParams, callback?: (isStarted: boolean) => void) => Accelerometer;
|
|
81
|
+
stop: (callback?: (isStopped: boolean) => void) => Accelerometer;
|
|
82
|
+
}
|
|
83
|
+
interface AccelerometerStartParams {
|
|
84
|
+
refresh_rate?: number;
|
|
85
|
+
}
|
|
86
|
+
interface BackButton {
|
|
87
|
+
isVisible: boolean;
|
|
88
|
+
onClick: EventHandlers["backButtonClicked"];
|
|
89
|
+
offClick: EventHandlers["backButtonClicked"];
|
|
90
|
+
show: () => BackButton;
|
|
91
|
+
hide: () => BackButton;
|
|
92
|
+
}
|
|
93
|
+
interface BiometricAuthenticateParams {
|
|
94
|
+
reason?: string;
|
|
95
|
+
}
|
|
96
|
+
interface BiometricManager {
|
|
97
|
+
isInited: boolean;
|
|
98
|
+
isBiometricAvailable: boolean;
|
|
99
|
+
biometricType: "finger" | "face" | "unknown";
|
|
100
|
+
isAccessRequested: boolean;
|
|
101
|
+
isAccessGranted: boolean;
|
|
102
|
+
isBiometricTokenSaved: boolean;
|
|
103
|
+
deviceId: string;
|
|
104
|
+
init: (callback?: () => void) => BiometricManager;
|
|
105
|
+
requestAccess: (params: BiometricRequestAccessParams, callback?: (isGranted: boolean) => void) => BiometricManager;
|
|
106
|
+
authenticate: (params: BiometricAuthenticateParams, callback?: (isAuthenticated: boolean) => void) => BiometricManager;
|
|
107
|
+
updateBiometricToken: (token: string, callback?: (isTokenUpdated: boolean) => void) => BiometricManager;
|
|
108
|
+
openSettings: () => BiometricManager;
|
|
109
|
+
}
|
|
110
|
+
interface BiometricRequestAccessParams {
|
|
111
|
+
reason?: string;
|
|
112
|
+
}
|
|
113
|
+
interface BottomButton {
|
|
114
|
+
type: string;
|
|
115
|
+
text: string;
|
|
116
|
+
color: string;
|
|
117
|
+
textColor: string;
|
|
118
|
+
isVisible: boolean;
|
|
119
|
+
isActive: boolean;
|
|
120
|
+
hasShineEffect: boolean;
|
|
121
|
+
position: string;
|
|
122
|
+
isProgressVisible: boolean;
|
|
123
|
+
setText: (text: string) => BottomButton;
|
|
124
|
+
onClick: (callback: () => void) => BottomButton;
|
|
125
|
+
offClick: (callback: () => void) => BottomButton;
|
|
126
|
+
show: () => BottomButton;
|
|
127
|
+
hide: () => BottomButton;
|
|
128
|
+
enable: () => BottomButton;
|
|
129
|
+
disable: () => BottomButton;
|
|
130
|
+
showProgress: (callback: (leaveActive: boolean) => void) => BottomButton;
|
|
131
|
+
hideProgress: () => BottomButton;
|
|
132
|
+
setParams: (params: {
|
|
133
|
+
text: string;
|
|
134
|
+
color: string;
|
|
135
|
+
has_shine_effect: boolean;
|
|
136
|
+
position: unknown;
|
|
137
|
+
is_active: boolean;
|
|
138
|
+
is_visible: boolean;
|
|
139
|
+
}) => BottomButton;
|
|
140
|
+
}
|
|
141
|
+
interface CloudStorage {
|
|
142
|
+
setItem: (key: string, value: string, callback?: (error: unknown | null) => void) => CloudStorage;
|
|
143
|
+
getItem: (key: string, callback: (error: unknown | null, value: string | null) => void) => CloudStorage;
|
|
144
|
+
getItems: (keys: string[], callback: (error: string | null, values: Record<string, string> | null) => void) => CloudStorage;
|
|
145
|
+
removeItem: (key: string, callback?: (error: string | null, isDeleted: boolean) => void) => CloudStorage;
|
|
146
|
+
removeItems: (keys: string[], callback?: (error: string | null, isDeleted: boolean) => void) => CloudStorage;
|
|
147
|
+
getKeys: (callback: (error: string | null, keys: string[] | null) => void) => CloudStorage;
|
|
148
|
+
}
|
|
149
|
+
interface ContentSafeAreaInset {
|
|
150
|
+
top: number;
|
|
151
|
+
bottom: number;
|
|
152
|
+
left: number;
|
|
153
|
+
right: number;
|
|
154
|
+
}
|
|
155
|
+
interface DeviceOrientation {
|
|
156
|
+
isStarted: boolean;
|
|
157
|
+
absolute: boolean;
|
|
158
|
+
alpha: number;
|
|
159
|
+
beta: number;
|
|
160
|
+
gamma: number;
|
|
161
|
+
start: (params: DeviceOrientationStartParams, callback?: (isTracking: boolean) => void) => void;
|
|
162
|
+
stop: (callback?: (isStopped: boolean) => void) => void;
|
|
163
|
+
}
|
|
164
|
+
interface DeviceOrientationStartParams {
|
|
165
|
+
refresh_rate?: number;
|
|
166
|
+
need_absolute?: boolean;
|
|
167
|
+
}
|
|
168
|
+
interface DeviceStorage {
|
|
169
|
+
setItem: (key: string, value: string, callback?: (error: unknown | null, isStored: boolean) => void) => DeviceStorage;
|
|
170
|
+
getItem: (key: string, callback: (error: unknown | null, value: string | null) => void) => DeviceStorage;
|
|
171
|
+
removeItem: (key: string, callback?: (error: unknown | null, isRemoved: boolean) => void) => DeviceStorage;
|
|
172
|
+
clear: (callback?: (error: unknown | null, isCleared: boolean) => void) => DeviceStorage;
|
|
173
|
+
}
|
|
174
|
+
interface DownloadFileParams {
|
|
175
|
+
url: string;
|
|
176
|
+
file_name: string;
|
|
177
|
+
}
|
|
178
|
+
interface EmojiStatusParams {
|
|
179
|
+
duration?: number;
|
|
180
|
+
}
|
|
181
|
+
interface Gyroscope {
|
|
182
|
+
isStarted: boolean;
|
|
183
|
+
x: number;
|
|
184
|
+
y: number;
|
|
185
|
+
z: number;
|
|
186
|
+
start: (params: GyroscopeStartParams, callback?: (isTracking: boolean) => void) => void;
|
|
187
|
+
stop: (callback?: (isStopped: boolean) => void) => void;
|
|
188
|
+
}
|
|
189
|
+
interface GyroscopeStartParams {
|
|
190
|
+
refresh_rate?: number;
|
|
191
|
+
}
|
|
192
|
+
interface HapticFeedback {
|
|
193
|
+
impactOccurred: (style: "light" | "medium" | "heavy" | "rigid" | "soft") => void;
|
|
194
|
+
notificationOccurred: (type: "error" | "success" | "warning") => void;
|
|
195
|
+
selectionChanged: () => HapticFeedback;
|
|
196
|
+
}
|
|
197
|
+
interface LocationData {
|
|
198
|
+
latitude: number;
|
|
199
|
+
longitude: number;
|
|
200
|
+
altitude: number;
|
|
201
|
+
course: number;
|
|
202
|
+
speed: number;
|
|
203
|
+
horizontal_accuracy: number;
|
|
204
|
+
vertical_accuracy: number;
|
|
205
|
+
course_accuracy: number;
|
|
206
|
+
speed_accuracy: number;
|
|
207
|
+
}
|
|
208
|
+
interface LocationManager {
|
|
209
|
+
isInited: boolean;
|
|
210
|
+
isLocationAvailable: boolean;
|
|
211
|
+
isAccessRequested: boolean;
|
|
212
|
+
isAccessGranted: boolean;
|
|
213
|
+
init: (callback?: () => void) => LocationManager;
|
|
214
|
+
getLocation: (callback: (location: LocationData | null) => void) => LocationManager;
|
|
215
|
+
openSettings: () => LocationManager;
|
|
216
|
+
}
|
|
217
|
+
interface PopupButton {
|
|
218
|
+
id?: string;
|
|
219
|
+
type?: "OK" | "Close" | "Cancel";
|
|
220
|
+
text?: string;
|
|
221
|
+
}
|
|
222
|
+
interface PopupParams {
|
|
223
|
+
message: string;
|
|
224
|
+
title?: string;
|
|
225
|
+
buttons?: PopupButton[];
|
|
226
|
+
}
|
|
227
|
+
interface SafeAreaInset {
|
|
228
|
+
top: number;
|
|
229
|
+
bottom: number;
|
|
230
|
+
left: number;
|
|
231
|
+
right: number;
|
|
232
|
+
}
|
|
233
|
+
interface ScanQrPopupParams {
|
|
234
|
+
text?: string;
|
|
235
|
+
}
|
|
236
|
+
interface SecureStorage {
|
|
237
|
+
setItem: (key: string, value: string, callback?: (error: unknown | null, isStored: boolean) => void) => SecureStorage;
|
|
238
|
+
getItem: (key: string, callback: (error: unknown | null, value: string | null, canBeRestored: boolean) => void) => SecureStorage;
|
|
239
|
+
restoreItem: (key: string, callback?: (error: unknown | null, value: string | null) => void) => SecureStorage;
|
|
240
|
+
removeItem: (key: string, callback?: (error: unknown | null, isRemoved: boolean) => void) => SecureStorage;
|
|
241
|
+
clear: (callback?: (error: unknown | null, isCleared: boolean) => void) => SecureStorage;
|
|
242
|
+
}
|
|
243
|
+
interface SettingsButton {
|
|
244
|
+
isVisible: boolean;
|
|
245
|
+
onClick: (callback: () => void) => SettingsButton;
|
|
246
|
+
offClick: (callback: () => void) => SettingsButton;
|
|
247
|
+
show: () => SettingsButton;
|
|
248
|
+
hide: () => SettingsButton;
|
|
249
|
+
}
|
|
250
|
+
interface StoryShareParams {
|
|
251
|
+
text?: string;
|
|
252
|
+
widget_link?: StoryWidgetLink;
|
|
253
|
+
}
|
|
254
|
+
interface StoryWidgetLink {
|
|
255
|
+
url: string;
|
|
256
|
+
name?: string;
|
|
257
|
+
}
|
|
258
|
+
interface ThemeParams {
|
|
259
|
+
bg_color?: string;
|
|
260
|
+
text_color?: string;
|
|
261
|
+
hint_color?: string;
|
|
262
|
+
link_color?: string;
|
|
263
|
+
button_color?: string;
|
|
264
|
+
button_text_color?: string;
|
|
265
|
+
secondary_bg_color?: string;
|
|
266
|
+
header_bg_color?: string;
|
|
267
|
+
bottom_bar_bg_color?: string;
|
|
268
|
+
accent_text_color?: string;
|
|
269
|
+
section_bg_color?: string;
|
|
270
|
+
section_header_text_color?: string;
|
|
271
|
+
section_separator_color?: string;
|
|
272
|
+
subtitle_text_color?: string;
|
|
273
|
+
destructive_text_color?: string;
|
|
274
|
+
}
|
|
275
|
+
interface WebAppChat {
|
|
276
|
+
id: number;
|
|
277
|
+
type: "group" | "supergroup" | "channel";
|
|
278
|
+
title: string;
|
|
279
|
+
username?: string;
|
|
280
|
+
photo_url?: "in";
|
|
281
|
+
}
|
|
282
|
+
interface WebAppInitData {
|
|
283
|
+
auth_date: number;
|
|
284
|
+
hash: string;
|
|
285
|
+
signature: string;
|
|
286
|
+
query_id?: string;
|
|
287
|
+
user?: WebAppUser;
|
|
288
|
+
receiver?: WebAppUser;
|
|
289
|
+
chat?: WebAppChat;
|
|
290
|
+
chat_type?: string;
|
|
291
|
+
chat_instance?: string;
|
|
292
|
+
start_param?: string;
|
|
293
|
+
can_send_after?: number;
|
|
294
|
+
}
|
|
295
|
+
interface WebAppUser {
|
|
296
|
+
id: number;
|
|
297
|
+
first_name: string;
|
|
298
|
+
is_bot?: boolean;
|
|
299
|
+
last_name?: string;
|
|
300
|
+
username?: string;
|
|
301
|
+
language_code?: string;
|
|
302
|
+
is_premium?: boolean;
|
|
303
|
+
added_to_attachment_menu?: boolean;
|
|
304
|
+
allows_write_to_pm?: boolean;
|
|
305
|
+
photo_url?: "in";
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
type BindOrUnbindEventHandler = <K extends keyof EventHandlers>(eventName: K, handler: EventHandlers[K]) => void;
|
|
309
|
+
interface EventHandlers {
|
|
310
|
+
activated: () => void;
|
|
311
|
+
deactivated: () => void;
|
|
312
|
+
themeChanged: () => void;
|
|
313
|
+
viewportChanged: (options: {
|
|
314
|
+
isStateStable: boolean;
|
|
315
|
+
}) => void;
|
|
316
|
+
safeAreaChanged: () => void;
|
|
317
|
+
contentSafeAreaChanged: () => void;
|
|
318
|
+
mainButtonClicked: () => void;
|
|
319
|
+
backButtonClicked: () => void;
|
|
320
|
+
settingsButtonClicked: () => void;
|
|
321
|
+
invoiceClosed: (options: {
|
|
322
|
+
url: string;
|
|
323
|
+
status: "paid" | "cancelled" | "failed" | "pending";
|
|
324
|
+
}) => void;
|
|
325
|
+
popupClosed: (options: {
|
|
326
|
+
button_id: string | null;
|
|
327
|
+
}) => void;
|
|
328
|
+
qrTextReceived: (options: {
|
|
329
|
+
data: string;
|
|
330
|
+
}) => void;
|
|
331
|
+
scanQrPopupClosed: () => void;
|
|
332
|
+
clipboardTextReceived: (options: {
|
|
333
|
+
data: string;
|
|
334
|
+
}) => void;
|
|
335
|
+
writeAccessRequested: (options: {
|
|
336
|
+
status: "allowed" | "cancelled";
|
|
337
|
+
}) => void;
|
|
338
|
+
biometricManagerUpdated: () => void;
|
|
339
|
+
biometricAuthRequested: (options: {
|
|
340
|
+
isAuthenticated: boolean;
|
|
341
|
+
biometricToken: string | null;
|
|
342
|
+
}) => void;
|
|
343
|
+
biometricTokenUpdated: (options: {
|
|
344
|
+
isUpdated: boolean;
|
|
345
|
+
}) => void;
|
|
346
|
+
fullscreenChanged: () => void;
|
|
347
|
+
fullscreenFailed: (options: {
|
|
348
|
+
error: "UNSUPPORTED" | "ALREADY_FULLSCREEN";
|
|
349
|
+
}) => void;
|
|
350
|
+
homeScreenAdded: () => void;
|
|
351
|
+
homeScreenChecked: (options: {
|
|
352
|
+
status: "unsupported" | "unknown" | "added" | "missed";
|
|
353
|
+
}) => void;
|
|
354
|
+
accelerometerStarted: () => void;
|
|
355
|
+
accelerometerStopped: () => void;
|
|
356
|
+
accelerometerChanged: () => void;
|
|
357
|
+
accelerometerFailed: (options: {
|
|
358
|
+
error: "UNSUPPORTED";
|
|
359
|
+
}) => void;
|
|
360
|
+
deviceOrientationStarted: () => void;
|
|
361
|
+
deviceOrientationStopped: () => void;
|
|
362
|
+
deviceOrientationChanged: () => void;
|
|
363
|
+
deviceOrientationFailed: (options: {
|
|
364
|
+
error: "UNSUPPORTED";
|
|
365
|
+
}) => void;
|
|
366
|
+
gyroscopeStarted: () => void;
|
|
367
|
+
gyroscopeStopped: () => void;
|
|
368
|
+
gyroscopeChanged: () => void;
|
|
369
|
+
gyroscopeFailed: (options: {
|
|
370
|
+
error: "UNSUPPORTED";
|
|
371
|
+
}) => void;
|
|
372
|
+
locationManagerUpdated: () => void;
|
|
373
|
+
locationRequested: (options: {
|
|
374
|
+
locationData: LocationData;
|
|
375
|
+
}) => void;
|
|
376
|
+
shareMessageSent: () => void;
|
|
377
|
+
shareMessageFailed: (options: {
|
|
378
|
+
error: "UNSUPPORTED" | "MESSAGE_EXPIRED" | "MESSAGE_SEND_FAILED" | "USER_DECLINED" | "UNKNOWN_ERROR";
|
|
379
|
+
}) => void;
|
|
380
|
+
emojiStatusSet: () => void;
|
|
381
|
+
emojiStatusFailed: (options: {
|
|
382
|
+
error: "UNSUPPORTED" | "SUGGESTED_EMOJI_INVALID" | "DURATION_INVALID" | "USER_DECLINED" | "SERVER_ERROR" | "UNKNOWN_ERROR";
|
|
383
|
+
}) => void;
|
|
384
|
+
emojiStatusAccessRequested: (options: {
|
|
385
|
+
status: "allowed" | "cancelled";
|
|
386
|
+
}) => void;
|
|
387
|
+
fileDownloadRequested: (options: {
|
|
388
|
+
status: "downloading" | "cancelled";
|
|
389
|
+
}) => void;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
type AllowedUpdateName = Exclude<keyof Update, "update_id">;
|
|
393
|
+
interface AcceptedGiftTypes {
|
|
394
|
+
unlimited_gifts: boolean;
|
|
395
|
+
limited_gifts: boolean;
|
|
396
|
+
unique_gifts: boolean;
|
|
397
|
+
premium_subscription: boolean;
|
|
398
|
+
}
|
|
399
|
+
interface AffiliateInfo {
|
|
400
|
+
commission_per_mille: number;
|
|
401
|
+
amount: number;
|
|
402
|
+
affiliate_user?: User;
|
|
403
|
+
affiliate_chat?: Chat;
|
|
404
|
+
nanostar_amount?: number;
|
|
405
|
+
}
|
|
406
|
+
interface Animation {
|
|
407
|
+
file_id: string;
|
|
408
|
+
file_unique_id: string;
|
|
409
|
+
width: number;
|
|
410
|
+
height: number;
|
|
411
|
+
duration: number;
|
|
412
|
+
thumbnail?: PhotoSize;
|
|
413
|
+
file_name?: string;
|
|
414
|
+
mime_type?: string;
|
|
415
|
+
file_size?: number;
|
|
416
|
+
}
|
|
417
|
+
interface Audio {
|
|
418
|
+
file_id: string;
|
|
419
|
+
file_unique_id: string;
|
|
420
|
+
duration: number;
|
|
421
|
+
performer?: string;
|
|
422
|
+
title?: string;
|
|
423
|
+
file_name?: string;
|
|
424
|
+
mime_type?: string;
|
|
425
|
+
file_size?: number;
|
|
426
|
+
thumbnail?: PhotoSize;
|
|
427
|
+
}
|
|
428
|
+
type BackgroundFill = BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient;
|
|
429
|
+
interface BackgroundFillFreeformGradient {
|
|
430
|
+
type: "freeform_gradient";
|
|
431
|
+
colors: number[];
|
|
432
|
+
}
|
|
433
|
+
interface BackgroundFillGradient {
|
|
434
|
+
type: "gradient";
|
|
435
|
+
top_color: number;
|
|
436
|
+
bottom_color: number;
|
|
437
|
+
rotation_angle: number;
|
|
438
|
+
}
|
|
439
|
+
interface BackgroundFillSolid {
|
|
440
|
+
type: "solid";
|
|
441
|
+
color: number;
|
|
442
|
+
}
|
|
443
|
+
type BackgroundType = BackgroundTypeFill | BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeChatTheme;
|
|
444
|
+
interface BackgroundTypeChatTheme {
|
|
445
|
+
type: "chat_theme";
|
|
446
|
+
theme_name: string;
|
|
447
|
+
}
|
|
448
|
+
interface BackgroundTypeFill {
|
|
449
|
+
type: "fill";
|
|
450
|
+
fill: BackgroundFill;
|
|
451
|
+
dark_theme_dimming: number;
|
|
452
|
+
}
|
|
453
|
+
interface BackgroundTypePattern {
|
|
454
|
+
type: "pattern";
|
|
455
|
+
document: Document;
|
|
456
|
+
fill: BackgroundFill;
|
|
457
|
+
intensity: number;
|
|
458
|
+
is_inverted?: boolean;
|
|
459
|
+
is_moving?: boolean;
|
|
460
|
+
}
|
|
461
|
+
interface BackgroundTypeWallpaper {
|
|
462
|
+
type: "wallpaper";
|
|
463
|
+
document: Document;
|
|
464
|
+
dark_theme_dimming: number;
|
|
465
|
+
is_blurred?: boolean;
|
|
466
|
+
is_moving?: boolean;
|
|
467
|
+
}
|
|
468
|
+
interface Birthdate {
|
|
469
|
+
day: number;
|
|
470
|
+
month: number;
|
|
471
|
+
year?: number;
|
|
472
|
+
}
|
|
473
|
+
interface BotCommand {
|
|
474
|
+
command: string;
|
|
475
|
+
description: string;
|
|
476
|
+
}
|
|
477
|
+
type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
|
|
478
|
+
interface BotCommandScopeAllChatAdministrators {
|
|
479
|
+
type: "all_chat_administrators";
|
|
480
|
+
}
|
|
481
|
+
interface BotCommandScopeAllGroupChats {
|
|
482
|
+
type: "all_group_chats";
|
|
483
|
+
}
|
|
484
|
+
interface BotCommandScopeAllPrivateChats {
|
|
485
|
+
type: "all_private_chats";
|
|
486
|
+
}
|
|
487
|
+
interface BotCommandScopeChat {
|
|
488
|
+
type: "chat";
|
|
489
|
+
chat_id: number | string;
|
|
490
|
+
}
|
|
491
|
+
interface BotCommandScopeChatAdministrators {
|
|
492
|
+
type: "chat_administrators";
|
|
493
|
+
chat_id: number | string;
|
|
494
|
+
}
|
|
495
|
+
interface BotCommandScopeChatMember {
|
|
496
|
+
type: "chat_member";
|
|
497
|
+
chat_id: number | string;
|
|
498
|
+
user_id: number;
|
|
499
|
+
}
|
|
500
|
+
interface BotCommandScopeDefault {
|
|
501
|
+
type: "default";
|
|
502
|
+
}
|
|
503
|
+
interface BotDescription {
|
|
504
|
+
description: string;
|
|
505
|
+
}
|
|
506
|
+
interface BotName {
|
|
507
|
+
name: string;
|
|
508
|
+
}
|
|
509
|
+
interface BotShortDescription {
|
|
510
|
+
short_description: string;
|
|
511
|
+
}
|
|
512
|
+
interface BusinessBotRights {
|
|
513
|
+
can_reply?: boolean;
|
|
514
|
+
can_read_messages?: boolean;
|
|
515
|
+
can_delete_sent_messages?: boolean;
|
|
516
|
+
can_delete_all_messages?: boolean;
|
|
517
|
+
can_edit_name?: boolean;
|
|
518
|
+
can_edit_bio?: boolean;
|
|
519
|
+
can_edit_profile_photo?: boolean;
|
|
520
|
+
can_edit_username?: boolean;
|
|
521
|
+
can_change_gift_settings?: boolean;
|
|
522
|
+
can_view_gifts_and_stars?: boolean;
|
|
523
|
+
can_convert_gifts_to_stars?: boolean;
|
|
524
|
+
can_transfer_and_upgrade_gifts?: boolean;
|
|
525
|
+
can_transfer_stars?: boolean;
|
|
526
|
+
can_manage_stories?: boolean;
|
|
527
|
+
}
|
|
528
|
+
interface BusinessConnection {
|
|
529
|
+
id: string;
|
|
530
|
+
user: User;
|
|
531
|
+
user_chat_id: number;
|
|
532
|
+
date: number;
|
|
533
|
+
is_enabled: boolean;
|
|
534
|
+
rights?: BusinessBotRights;
|
|
535
|
+
}
|
|
536
|
+
interface BusinessIntro {
|
|
537
|
+
title?: string;
|
|
538
|
+
message?: string;
|
|
539
|
+
sticker?: Sticker;
|
|
540
|
+
}
|
|
541
|
+
interface BusinessLocation {
|
|
542
|
+
address: string;
|
|
543
|
+
location?: Location;
|
|
544
|
+
}
|
|
545
|
+
interface BusinessMessagesDeleted {
|
|
546
|
+
business_connection_id: string;
|
|
547
|
+
chat: Chat;
|
|
548
|
+
message_ids: number[];
|
|
549
|
+
}
|
|
550
|
+
interface BusinessOpeningHours {
|
|
551
|
+
time_zone_name: string;
|
|
552
|
+
opening_hours: BusinessOpeningHoursInterval[];
|
|
553
|
+
}
|
|
554
|
+
interface BusinessOpeningHoursInterval {
|
|
555
|
+
opening_minute: number;
|
|
556
|
+
closing_minute: number;
|
|
557
|
+
}
|
|
558
|
+
type CallbackGame = never;
|
|
559
|
+
interface CallbackQuery {
|
|
560
|
+
id: string;
|
|
561
|
+
from: User;
|
|
562
|
+
chat_instance: string;
|
|
563
|
+
message?: MaybeInaccessibleMessage;
|
|
564
|
+
inline_message_id?: string;
|
|
565
|
+
data?: string;
|
|
566
|
+
game_short_name?: string;
|
|
567
|
+
}
|
|
568
|
+
interface Chat {
|
|
569
|
+
id: number;
|
|
570
|
+
type: "private" | "group" | "supergroup" | "channel";
|
|
571
|
+
title?: string;
|
|
572
|
+
username?: string;
|
|
573
|
+
first_name?: string;
|
|
574
|
+
last_name?: string;
|
|
575
|
+
is_forum?: boolean;
|
|
576
|
+
is_direct_messages?: boolean;
|
|
577
|
+
}
|
|
578
|
+
interface ChatAdministratorRights {
|
|
579
|
+
is_anonymous: boolean;
|
|
580
|
+
can_manage_chat: boolean;
|
|
581
|
+
can_delete_messages: boolean;
|
|
582
|
+
can_manage_video_chats: boolean;
|
|
583
|
+
can_restrict_members: boolean;
|
|
584
|
+
can_promote_members: boolean;
|
|
585
|
+
can_change_info: boolean;
|
|
586
|
+
can_invite_users: boolean;
|
|
587
|
+
can_post_stories: boolean;
|
|
588
|
+
can_edit_stories: boolean;
|
|
589
|
+
can_delete_stories: boolean;
|
|
590
|
+
can_post_messages?: boolean;
|
|
591
|
+
can_edit_messages?: boolean;
|
|
592
|
+
can_pin_messages?: boolean;
|
|
593
|
+
can_manage_topics?: boolean;
|
|
594
|
+
can_manage_direct_messages?: boolean;
|
|
595
|
+
}
|
|
596
|
+
interface ChatBackground {
|
|
597
|
+
type: BackgroundType;
|
|
598
|
+
}
|
|
599
|
+
interface ChatBoost {
|
|
600
|
+
boost_id: string;
|
|
601
|
+
add_date: number;
|
|
602
|
+
expiration_date: number;
|
|
603
|
+
source: ChatBoostSource;
|
|
604
|
+
}
|
|
605
|
+
interface ChatBoostAdded {
|
|
606
|
+
boost_count: number;
|
|
607
|
+
}
|
|
608
|
+
interface ChatBoostRemoved {
|
|
609
|
+
chat: Chat;
|
|
610
|
+
boost_id: string;
|
|
611
|
+
remove_date: number;
|
|
612
|
+
source: ChatBoostSource;
|
|
613
|
+
}
|
|
614
|
+
type ChatBoostSource = ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway;
|
|
615
|
+
interface ChatBoostSourceGiftCode {
|
|
616
|
+
source: "gift_code";
|
|
617
|
+
user: User;
|
|
618
|
+
}
|
|
619
|
+
interface ChatBoostSourceGiveaway {
|
|
620
|
+
source: "giveaway";
|
|
621
|
+
giveaway_message_id: number;
|
|
622
|
+
user?: User;
|
|
623
|
+
prize_star_count?: number;
|
|
624
|
+
is_unclaimed?: boolean;
|
|
625
|
+
}
|
|
626
|
+
interface ChatBoostSourcePremium {
|
|
627
|
+
source: "premium";
|
|
628
|
+
user: User;
|
|
629
|
+
}
|
|
630
|
+
interface ChatBoostUpdated {
|
|
631
|
+
chat: Chat;
|
|
632
|
+
boost: ChatBoost;
|
|
633
|
+
}
|
|
634
|
+
interface ChatFullInfo {
|
|
635
|
+
id: number;
|
|
636
|
+
type: "private" | "group" | "supergroup" | "channel";
|
|
637
|
+
accent_color_id: number;
|
|
638
|
+
max_reaction_count: number;
|
|
639
|
+
accepted_gift_types: AcceptedGiftTypes;
|
|
640
|
+
title?: string;
|
|
641
|
+
username?: string;
|
|
642
|
+
first_name?: string;
|
|
643
|
+
last_name?: string;
|
|
644
|
+
is_forum?: boolean;
|
|
645
|
+
is_direct_messages?: boolean;
|
|
646
|
+
photo?: ChatPhoto;
|
|
647
|
+
active_usernames?: string[];
|
|
648
|
+
birthdate?: Birthdate;
|
|
649
|
+
business_intro?: BusinessIntro;
|
|
650
|
+
business_location?: BusinessLocation;
|
|
651
|
+
business_opening_hours?: BusinessOpeningHours;
|
|
652
|
+
personal_chat?: Chat;
|
|
653
|
+
parent_chat?: Chat;
|
|
654
|
+
available_reactions?: ReactionType[];
|
|
655
|
+
background_custom_emoji_id?: string;
|
|
656
|
+
profile_accent_color_id?: number;
|
|
657
|
+
profile_background_custom_emoji_id?: string;
|
|
658
|
+
emoji_status_custom_emoji_id?: string;
|
|
659
|
+
emoji_status_expiration_date?: number;
|
|
660
|
+
bio?: string;
|
|
661
|
+
has_private_forwards?: boolean;
|
|
662
|
+
has_restricted_voice_and_video_messages?: boolean;
|
|
663
|
+
join_to_send_messages?: boolean;
|
|
664
|
+
join_by_request?: boolean;
|
|
665
|
+
description?: string;
|
|
666
|
+
invite_link?: string;
|
|
667
|
+
pinned_message?: Message;
|
|
668
|
+
permissions?: ChatPermissions;
|
|
669
|
+
can_send_paid_media?: boolean;
|
|
670
|
+
slow_mode_delay?: number;
|
|
671
|
+
unrestrict_boost_count?: number;
|
|
672
|
+
message_auto_delete_time?: number;
|
|
673
|
+
has_aggressive_anti_spam_enabled?: boolean;
|
|
674
|
+
has_hidden_members?: boolean;
|
|
675
|
+
has_protected_content?: boolean;
|
|
676
|
+
has_visible_history?: boolean;
|
|
677
|
+
sticker_set_name?: string;
|
|
678
|
+
can_set_sticker_set?: boolean;
|
|
679
|
+
custom_emoji_sticker_set_name?: string;
|
|
680
|
+
linked_chat_id?: number;
|
|
681
|
+
location?: ChatLocation;
|
|
682
|
+
}
|
|
683
|
+
interface ChatInviteLink {
|
|
684
|
+
invite_link: string;
|
|
685
|
+
creator: User;
|
|
686
|
+
creates_join_request: boolean;
|
|
687
|
+
is_primary: boolean;
|
|
688
|
+
is_revoked: boolean;
|
|
689
|
+
name?: string;
|
|
690
|
+
expire_date?: number;
|
|
691
|
+
member_limit?: number;
|
|
692
|
+
pending_join_request_count?: number;
|
|
693
|
+
subscription_period?: number;
|
|
694
|
+
subscription_price?: number;
|
|
695
|
+
}
|
|
696
|
+
interface ChatJoinRequest {
|
|
697
|
+
chat: Chat;
|
|
698
|
+
from: User;
|
|
699
|
+
user_chat_id: number;
|
|
700
|
+
date: number;
|
|
701
|
+
bio?: string;
|
|
702
|
+
invite_link?: ChatInviteLink;
|
|
703
|
+
}
|
|
704
|
+
interface ChatLocation {
|
|
705
|
+
location: Location;
|
|
706
|
+
address: string;
|
|
707
|
+
}
|
|
708
|
+
type ChatMember = ChatMemberOwner | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned;
|
|
709
|
+
interface ChatMemberAdministrator {
|
|
710
|
+
status: "administrator";
|
|
711
|
+
user: User;
|
|
712
|
+
can_be_edited: boolean;
|
|
713
|
+
is_anonymous: boolean;
|
|
714
|
+
can_manage_chat: boolean;
|
|
715
|
+
can_delete_messages: boolean;
|
|
716
|
+
can_manage_video_chats: boolean;
|
|
717
|
+
can_restrict_members: boolean;
|
|
718
|
+
can_promote_members: boolean;
|
|
719
|
+
can_change_info: boolean;
|
|
720
|
+
can_invite_users: boolean;
|
|
721
|
+
can_post_stories: boolean;
|
|
722
|
+
can_edit_stories: boolean;
|
|
723
|
+
can_delete_stories: boolean;
|
|
724
|
+
can_post_messages?: boolean;
|
|
725
|
+
can_edit_messages?: boolean;
|
|
726
|
+
can_pin_messages?: boolean;
|
|
727
|
+
can_manage_topics?: boolean;
|
|
728
|
+
can_manage_direct_messages?: boolean;
|
|
729
|
+
custom_title?: string;
|
|
730
|
+
}
|
|
731
|
+
interface ChatMemberBanned {
|
|
732
|
+
status: "kicked";
|
|
733
|
+
user: User;
|
|
734
|
+
until_date: number;
|
|
735
|
+
}
|
|
736
|
+
interface ChatMemberLeft {
|
|
737
|
+
status: "left";
|
|
738
|
+
user: User;
|
|
739
|
+
}
|
|
740
|
+
interface ChatMemberMember {
|
|
741
|
+
status: "member";
|
|
742
|
+
user: User;
|
|
743
|
+
until_date?: number;
|
|
744
|
+
}
|
|
745
|
+
interface ChatMemberOwner {
|
|
746
|
+
status: "creator";
|
|
747
|
+
user: User;
|
|
748
|
+
is_anonymous: boolean;
|
|
749
|
+
custom_title?: string;
|
|
750
|
+
}
|
|
751
|
+
interface ChatMemberRestricted {
|
|
752
|
+
status: "restricted";
|
|
753
|
+
user: User;
|
|
754
|
+
is_member: boolean;
|
|
755
|
+
can_send_messages: boolean;
|
|
756
|
+
can_send_audios: boolean;
|
|
757
|
+
can_send_documents: boolean;
|
|
758
|
+
can_send_photos: boolean;
|
|
759
|
+
can_send_videos: boolean;
|
|
760
|
+
can_send_video_notes: boolean;
|
|
761
|
+
can_send_voice_notes: boolean;
|
|
762
|
+
can_send_polls: boolean;
|
|
763
|
+
can_send_other_messages: boolean;
|
|
764
|
+
can_add_web_page_previews: boolean;
|
|
765
|
+
can_change_info: boolean;
|
|
766
|
+
can_invite_users: boolean;
|
|
767
|
+
can_pin_messages: boolean;
|
|
768
|
+
can_manage_topics: boolean;
|
|
769
|
+
until_date: number;
|
|
770
|
+
}
|
|
771
|
+
interface ChatMemberUpdated {
|
|
772
|
+
chat: Chat;
|
|
773
|
+
from: User;
|
|
774
|
+
date: number;
|
|
775
|
+
old_chat_member: ChatMember;
|
|
776
|
+
new_chat_member: ChatMember;
|
|
777
|
+
invite_link?: ChatInviteLink;
|
|
778
|
+
via_join_request?: boolean;
|
|
779
|
+
via_chat_folder_invite_link?: boolean;
|
|
780
|
+
}
|
|
781
|
+
interface ChatPermissions {
|
|
782
|
+
can_send_messages?: boolean;
|
|
783
|
+
can_send_audios?: boolean;
|
|
784
|
+
can_send_documents?: boolean;
|
|
785
|
+
can_send_photos?: boolean;
|
|
786
|
+
can_send_videos?: boolean;
|
|
787
|
+
can_send_video_notes?: boolean;
|
|
788
|
+
can_send_voice_notes?: boolean;
|
|
789
|
+
can_send_polls?: boolean;
|
|
790
|
+
can_send_other_messages?: boolean;
|
|
791
|
+
can_add_web_page_previews?: boolean;
|
|
792
|
+
can_change_info?: boolean;
|
|
793
|
+
can_invite_users?: boolean;
|
|
794
|
+
can_pin_messages?: boolean;
|
|
795
|
+
can_manage_topics?: boolean;
|
|
796
|
+
}
|
|
797
|
+
interface ChatPhoto {
|
|
798
|
+
small_file_id: string;
|
|
799
|
+
small_file_unique_id: string;
|
|
800
|
+
big_file_id: string;
|
|
801
|
+
big_file_unique_id: string;
|
|
802
|
+
}
|
|
803
|
+
interface ChatShared {
|
|
804
|
+
request_id: number;
|
|
805
|
+
chat_id: number;
|
|
806
|
+
title?: string;
|
|
807
|
+
username?: string;
|
|
808
|
+
photo?: PhotoSize[];
|
|
809
|
+
}
|
|
810
|
+
interface Checklist {
|
|
811
|
+
title: string;
|
|
812
|
+
tasks: ChecklistTask[];
|
|
813
|
+
title_entities?: MessageEntity[];
|
|
814
|
+
others_can_add_tasks?: boolean;
|
|
815
|
+
others_can_mark_tasks_as_done?: boolean;
|
|
816
|
+
}
|
|
817
|
+
interface ChecklistTask {
|
|
818
|
+
id: number;
|
|
819
|
+
text: string;
|
|
820
|
+
text_entities?: MessageEntity[];
|
|
821
|
+
completed_by_user?: User;
|
|
822
|
+
completion_date?: number;
|
|
823
|
+
}
|
|
824
|
+
interface ChecklistTasksAdded {
|
|
825
|
+
tasks: ChecklistTask[];
|
|
826
|
+
checklist_message?: Message;
|
|
827
|
+
}
|
|
828
|
+
interface ChecklistTasksDone {
|
|
829
|
+
checklist_message?: Message;
|
|
830
|
+
marked_as_done_task_ids?: number[];
|
|
831
|
+
marked_as_not_done_task_ids?: number[];
|
|
832
|
+
}
|
|
833
|
+
interface ChosenInlineResult {
|
|
834
|
+
result_id: string;
|
|
835
|
+
from: User;
|
|
836
|
+
query: string;
|
|
837
|
+
location?: Location;
|
|
838
|
+
inline_message_id?: string;
|
|
839
|
+
}
|
|
840
|
+
interface Contact {
|
|
841
|
+
phone_number: string;
|
|
842
|
+
first_name: string;
|
|
843
|
+
last_name?: string;
|
|
844
|
+
user_id?: number;
|
|
845
|
+
vcard?: string;
|
|
846
|
+
}
|
|
847
|
+
interface CopyTextButton {
|
|
848
|
+
text: string;
|
|
849
|
+
}
|
|
850
|
+
interface Dice {
|
|
851
|
+
emoji: string;
|
|
852
|
+
value: number;
|
|
853
|
+
}
|
|
854
|
+
interface DirectMessagePriceChanged {
|
|
855
|
+
are_direct_messages_enabled: boolean;
|
|
856
|
+
direct_message_star_count?: number;
|
|
857
|
+
}
|
|
858
|
+
interface DirectMessagesTopic {
|
|
859
|
+
topic_id: number;
|
|
860
|
+
user?: User;
|
|
861
|
+
}
|
|
862
|
+
interface Document {
|
|
863
|
+
file_id: string;
|
|
864
|
+
file_unique_id: string;
|
|
865
|
+
thumbnail?: PhotoSize;
|
|
866
|
+
file_name?: string;
|
|
867
|
+
mime_type?: string;
|
|
868
|
+
file_size?: number;
|
|
869
|
+
}
|
|
870
|
+
interface EncryptedCredentials {
|
|
871
|
+
data: string;
|
|
872
|
+
hash: string;
|
|
873
|
+
secret: string;
|
|
874
|
+
}
|
|
875
|
+
interface EncryptedPassportElement {
|
|
876
|
+
type: string;
|
|
877
|
+
hash: string;
|
|
878
|
+
data?: string;
|
|
879
|
+
phone_number?: string;
|
|
880
|
+
email?: string;
|
|
881
|
+
files?: PassportFile[];
|
|
882
|
+
front_side?: PassportFile;
|
|
883
|
+
reverse_side?: PassportFile;
|
|
884
|
+
selfie?: PassportFile;
|
|
885
|
+
translation?: PassportFile[];
|
|
886
|
+
}
|
|
887
|
+
interface ExternalReplyInfo {
|
|
888
|
+
origin: MessageOrigin;
|
|
889
|
+
chat?: Chat;
|
|
890
|
+
message_id?: number;
|
|
891
|
+
link_preview_options?: LinkPreviewOptions;
|
|
892
|
+
animation?: Animation;
|
|
893
|
+
audio?: Audio;
|
|
894
|
+
document?: Document;
|
|
895
|
+
paid_media?: PaidMediaInfo;
|
|
896
|
+
photo?: PhotoSize[];
|
|
897
|
+
sticker?: Sticker;
|
|
898
|
+
story?: Story;
|
|
899
|
+
video?: Video;
|
|
900
|
+
video_note?: VideoNote;
|
|
901
|
+
voice?: Voice;
|
|
902
|
+
has_media_spoiler?: boolean;
|
|
903
|
+
checklist?: Checklist;
|
|
904
|
+
contact?: Contact;
|
|
905
|
+
dice?: Dice;
|
|
906
|
+
game?: Game;
|
|
907
|
+
giveaway?: Giveaway;
|
|
908
|
+
giveaway_winners?: GiveawayWinners;
|
|
909
|
+
invoice?: Invoice;
|
|
910
|
+
location?: Location;
|
|
911
|
+
poll?: Poll;
|
|
912
|
+
venue?: Venue;
|
|
913
|
+
}
|
|
914
|
+
interface File {
|
|
915
|
+
file_id: string;
|
|
916
|
+
file_unique_id: string;
|
|
917
|
+
file_size?: number;
|
|
918
|
+
file_path?: string;
|
|
919
|
+
}
|
|
920
|
+
interface ForceReply {
|
|
921
|
+
force_reply: boolean;
|
|
922
|
+
input_field_placeholder?: string;
|
|
923
|
+
selective?: boolean;
|
|
924
|
+
}
|
|
925
|
+
interface ForumTopic {
|
|
926
|
+
message_thread_id: number;
|
|
927
|
+
name: string;
|
|
928
|
+
icon_color: number;
|
|
929
|
+
icon_custom_emoji_id?: string;
|
|
930
|
+
}
|
|
931
|
+
type ForumTopicClosed = never;
|
|
932
|
+
interface ForumTopicCreated {
|
|
933
|
+
name: string;
|
|
934
|
+
icon_color: number;
|
|
935
|
+
icon_custom_emoji_id?: string;
|
|
936
|
+
}
|
|
937
|
+
interface ForumTopicEdited {
|
|
938
|
+
name?: string;
|
|
939
|
+
icon_custom_emoji_id?: string;
|
|
940
|
+
}
|
|
941
|
+
type ForumTopicReopened = never;
|
|
942
|
+
interface Game {
|
|
943
|
+
title: string;
|
|
944
|
+
description: string;
|
|
945
|
+
photo: PhotoSize[];
|
|
946
|
+
text?: string;
|
|
947
|
+
text_entities?: MessageEntity[];
|
|
948
|
+
animation?: Animation;
|
|
949
|
+
}
|
|
950
|
+
interface GameHighScore {
|
|
951
|
+
position: number;
|
|
952
|
+
user: User;
|
|
953
|
+
score: number;
|
|
954
|
+
}
|
|
955
|
+
type GeneralForumTopicHidden = never;
|
|
956
|
+
type GeneralForumTopicUnhidden = never;
|
|
957
|
+
interface Gift {
|
|
958
|
+
id: string;
|
|
959
|
+
sticker: Sticker;
|
|
960
|
+
star_count: number;
|
|
961
|
+
upgrade_star_count?: number;
|
|
962
|
+
total_count?: number;
|
|
963
|
+
remaining_count?: number;
|
|
964
|
+
publisher_chat?: Chat;
|
|
965
|
+
}
|
|
966
|
+
interface GiftInfo {
|
|
967
|
+
gift: Gift;
|
|
968
|
+
owned_gift_id?: string;
|
|
969
|
+
convert_star_count?: number;
|
|
970
|
+
prepaid_upgrade_star_count?: number;
|
|
971
|
+
can_be_upgraded?: boolean;
|
|
972
|
+
text?: string;
|
|
973
|
+
entities?: MessageEntity[];
|
|
974
|
+
is_private?: boolean;
|
|
975
|
+
}
|
|
976
|
+
interface Gifts {
|
|
977
|
+
gifts: Gift[];
|
|
978
|
+
}
|
|
979
|
+
interface Giveaway {
|
|
980
|
+
chats: Chat[];
|
|
981
|
+
winners_selection_date: number;
|
|
982
|
+
winner_count: number;
|
|
983
|
+
only_new_members?: boolean;
|
|
984
|
+
has_public_winners?: boolean;
|
|
985
|
+
prize_description?: string;
|
|
986
|
+
country_codes?: string[];
|
|
987
|
+
prize_star_count?: number;
|
|
988
|
+
premium_subscription_month_count?: number;
|
|
989
|
+
}
|
|
990
|
+
interface GiveawayCompleted {
|
|
991
|
+
winner_count: number;
|
|
992
|
+
unclaimed_prize_count?: number;
|
|
993
|
+
giveaway_message?: Message;
|
|
994
|
+
is_star_giveaway?: boolean;
|
|
995
|
+
}
|
|
996
|
+
interface GiveawayCreated {
|
|
997
|
+
prize_star_count?: number;
|
|
998
|
+
}
|
|
999
|
+
interface GiveawayWinners {
|
|
1000
|
+
chat: Chat;
|
|
1001
|
+
giveaway_message_id: number;
|
|
1002
|
+
winners_selection_date: number;
|
|
1003
|
+
winner_count: number;
|
|
1004
|
+
winners: User[];
|
|
1005
|
+
additional_chat_count?: number;
|
|
1006
|
+
prize_star_count?: number;
|
|
1007
|
+
premium_subscription_month_count?: number;
|
|
1008
|
+
unclaimed_prize_count?: number;
|
|
1009
|
+
only_new_members?: boolean;
|
|
1010
|
+
was_refunded?: boolean;
|
|
1011
|
+
prize_description?: string;
|
|
1012
|
+
}
|
|
1013
|
+
interface InaccessibleMessage {
|
|
1014
|
+
chat: Chat;
|
|
1015
|
+
message_id: number;
|
|
1016
|
+
date: number;
|
|
1017
|
+
}
|
|
1018
|
+
interface InlineKeyboardButton {
|
|
1019
|
+
text: string;
|
|
1020
|
+
url?: string;
|
|
1021
|
+
callback_data?: string;
|
|
1022
|
+
web_app?: WebAppInfo;
|
|
1023
|
+
login_url?: LoginUrl;
|
|
1024
|
+
switch_inline_query?: string;
|
|
1025
|
+
switch_inline_query_current_chat?: string;
|
|
1026
|
+
switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
|
|
1027
|
+
copy_text?: CopyTextButton;
|
|
1028
|
+
callback_game?: CallbackGame;
|
|
1029
|
+
pay?: boolean;
|
|
1030
|
+
}
|
|
1031
|
+
interface InlineKeyboardMarkup {
|
|
1032
|
+
inline_keyboard: InlineKeyboardButton[][];
|
|
1033
|
+
}
|
|
1034
|
+
interface InlineQuery {
|
|
1035
|
+
id: string;
|
|
1036
|
+
from: User;
|
|
1037
|
+
query: string;
|
|
1038
|
+
offset: string;
|
|
1039
|
+
chat_type?: string;
|
|
1040
|
+
location?: Location;
|
|
1041
|
+
}
|
|
1042
|
+
type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice;
|
|
1043
|
+
interface InlineQueryResultArticle {
|
|
1044
|
+
type: "article";
|
|
1045
|
+
id: string;
|
|
1046
|
+
title: string;
|
|
1047
|
+
input_message_content: InputMessageContent;
|
|
1048
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1049
|
+
url?: string;
|
|
1050
|
+
description?: string;
|
|
1051
|
+
thumbnail_url?: string;
|
|
1052
|
+
thumbnail_width?: number;
|
|
1053
|
+
thumbnail_height?: number;
|
|
1054
|
+
}
|
|
1055
|
+
interface InlineQueryResultAudio {
|
|
1056
|
+
type: "audio";
|
|
1057
|
+
id: string;
|
|
1058
|
+
audio_url: string;
|
|
1059
|
+
title: string;
|
|
1060
|
+
caption?: string;
|
|
1061
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1062
|
+
caption_entities?: MessageEntity[];
|
|
1063
|
+
performer?: string;
|
|
1064
|
+
audio_duration?: number;
|
|
1065
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1066
|
+
input_message_content?: InputMessageContent;
|
|
1067
|
+
}
|
|
1068
|
+
interface InlineQueryResultCachedAudio {
|
|
1069
|
+
type: "audio";
|
|
1070
|
+
id: string;
|
|
1071
|
+
audio_file_id: string;
|
|
1072
|
+
caption?: string;
|
|
1073
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1074
|
+
caption_entities?: MessageEntity[];
|
|
1075
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1076
|
+
input_message_content?: InputMessageContent;
|
|
1077
|
+
}
|
|
1078
|
+
interface InlineQueryResultCachedDocument {
|
|
1079
|
+
type: "document";
|
|
1080
|
+
id: string;
|
|
1081
|
+
title: string;
|
|
1082
|
+
document_file_id: string;
|
|
1083
|
+
description?: string;
|
|
1084
|
+
caption?: string;
|
|
1085
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1086
|
+
caption_entities?: MessageEntity[];
|
|
1087
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1088
|
+
input_message_content?: InputMessageContent;
|
|
1089
|
+
}
|
|
1090
|
+
interface InlineQueryResultCachedGif {
|
|
1091
|
+
type: "gif";
|
|
1092
|
+
id: string;
|
|
1093
|
+
gif_file_id: string;
|
|
1094
|
+
title?: string;
|
|
1095
|
+
caption?: string;
|
|
1096
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1097
|
+
caption_entities?: MessageEntity[];
|
|
1098
|
+
show_caption_above_media?: boolean;
|
|
1099
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1100
|
+
input_message_content?: InputMessageContent;
|
|
1101
|
+
}
|
|
1102
|
+
interface InlineQueryResultCachedMpeg4Gif {
|
|
1103
|
+
type: "mpeg4_gif";
|
|
1104
|
+
id: string;
|
|
1105
|
+
mpeg4_file_id: string;
|
|
1106
|
+
title?: string;
|
|
1107
|
+
caption?: string;
|
|
1108
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1109
|
+
caption_entities?: MessageEntity[];
|
|
1110
|
+
show_caption_above_media?: boolean;
|
|
1111
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1112
|
+
input_message_content?: InputMessageContent;
|
|
1113
|
+
}
|
|
1114
|
+
interface InlineQueryResultCachedPhoto {
|
|
1115
|
+
type: "photo";
|
|
1116
|
+
id: string;
|
|
1117
|
+
photo_file_id: string;
|
|
1118
|
+
title?: string;
|
|
1119
|
+
description?: string;
|
|
1120
|
+
caption?: string;
|
|
1121
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1122
|
+
caption_entities?: MessageEntity[];
|
|
1123
|
+
show_caption_above_media?: boolean;
|
|
1124
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1125
|
+
input_message_content?: InputMessageContent;
|
|
1126
|
+
}
|
|
1127
|
+
interface InlineQueryResultCachedSticker {
|
|
1128
|
+
type: "sticker";
|
|
1129
|
+
id: string;
|
|
1130
|
+
sticker_file_id: string;
|
|
1131
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1132
|
+
input_message_content?: InputMessageContent;
|
|
1133
|
+
}
|
|
1134
|
+
interface InlineQueryResultCachedVideo {
|
|
1135
|
+
type: "video";
|
|
1136
|
+
id: string;
|
|
1137
|
+
video_file_id: string;
|
|
1138
|
+
title: string;
|
|
1139
|
+
description?: string;
|
|
1140
|
+
caption?: string;
|
|
1141
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1142
|
+
caption_entities?: MessageEntity[];
|
|
1143
|
+
show_caption_above_media?: boolean;
|
|
1144
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1145
|
+
input_message_content?: InputMessageContent;
|
|
1146
|
+
}
|
|
1147
|
+
interface InlineQueryResultCachedVoice {
|
|
1148
|
+
type: "voice";
|
|
1149
|
+
id: string;
|
|
1150
|
+
voice_file_id: string;
|
|
1151
|
+
title: string;
|
|
1152
|
+
caption?: string;
|
|
1153
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1154
|
+
caption_entities?: MessageEntity[];
|
|
1155
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1156
|
+
input_message_content?: InputMessageContent;
|
|
1157
|
+
}
|
|
1158
|
+
interface InlineQueryResultContact {
|
|
1159
|
+
type: "contact";
|
|
1160
|
+
id: string;
|
|
1161
|
+
phone_number: string;
|
|
1162
|
+
first_name: string;
|
|
1163
|
+
last_name?: string;
|
|
1164
|
+
vcard?: string;
|
|
1165
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1166
|
+
input_message_content?: InputMessageContent;
|
|
1167
|
+
thumbnail_url?: string;
|
|
1168
|
+
thumbnail_width?: number;
|
|
1169
|
+
thumbnail_height?: number;
|
|
1170
|
+
}
|
|
1171
|
+
interface InlineQueryResultDocument {
|
|
1172
|
+
type: "document";
|
|
1173
|
+
id: string;
|
|
1174
|
+
title: string;
|
|
1175
|
+
document_url: string;
|
|
1176
|
+
mime_type: string;
|
|
1177
|
+
caption?: string;
|
|
1178
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1179
|
+
caption_entities?: MessageEntity[];
|
|
1180
|
+
description?: string;
|
|
1181
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1182
|
+
input_message_content?: InputMessageContent;
|
|
1183
|
+
thumbnail_url?: string;
|
|
1184
|
+
thumbnail_width?: number;
|
|
1185
|
+
thumbnail_height?: number;
|
|
1186
|
+
}
|
|
1187
|
+
interface InlineQueryResultGame {
|
|
1188
|
+
type: "game";
|
|
1189
|
+
id: string;
|
|
1190
|
+
game_short_name: string;
|
|
1191
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1192
|
+
}
|
|
1193
|
+
interface InlineQueryResultGif {
|
|
1194
|
+
type: "gif";
|
|
1195
|
+
id: string;
|
|
1196
|
+
gif_url: string;
|
|
1197
|
+
thumbnail_url: string;
|
|
1198
|
+
gif_width?: number;
|
|
1199
|
+
gif_height?: number;
|
|
1200
|
+
gif_duration?: number;
|
|
1201
|
+
thumbnail_mime_type?: "image/jpeg" | "image/gif" | "video/mp4";
|
|
1202
|
+
title?: string;
|
|
1203
|
+
caption?: string;
|
|
1204
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1205
|
+
caption_entities?: MessageEntity[];
|
|
1206
|
+
show_caption_above_media?: boolean;
|
|
1207
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1208
|
+
input_message_content?: InputMessageContent;
|
|
1209
|
+
}
|
|
1210
|
+
interface InlineQueryResultLocation {
|
|
1211
|
+
type: "location";
|
|
1212
|
+
id: string;
|
|
1213
|
+
latitude: number;
|
|
1214
|
+
longitude: number;
|
|
1215
|
+
title: string;
|
|
1216
|
+
horizontal_accuracy?: number;
|
|
1217
|
+
live_period?: number;
|
|
1218
|
+
heading?: number;
|
|
1219
|
+
proximity_alert_radius?: number;
|
|
1220
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1221
|
+
input_message_content?: InputMessageContent;
|
|
1222
|
+
thumbnail_url?: string;
|
|
1223
|
+
thumbnail_width?: number;
|
|
1224
|
+
thumbnail_height?: number;
|
|
1225
|
+
}
|
|
1226
|
+
interface InlineQueryResultMpeg4Gif {
|
|
1227
|
+
type: "mpeg4_gif";
|
|
1228
|
+
id: string;
|
|
1229
|
+
mpeg4_url: string;
|
|
1230
|
+
thumbnail_url: string;
|
|
1231
|
+
mpeg4_width?: number;
|
|
1232
|
+
mpeg4_height?: number;
|
|
1233
|
+
mpeg4_duration?: number;
|
|
1234
|
+
thumbnail_mime_type?: "image/jpeg" | "image/gif" | "video/mp4";
|
|
1235
|
+
title?: string;
|
|
1236
|
+
caption?: string;
|
|
1237
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1238
|
+
caption_entities?: MessageEntity[];
|
|
1239
|
+
show_caption_above_media?: boolean;
|
|
1240
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1241
|
+
input_message_content?: InputMessageContent;
|
|
1242
|
+
}
|
|
1243
|
+
interface InlineQueryResultPhoto {
|
|
1244
|
+
type: "photo";
|
|
1245
|
+
id: string;
|
|
1246
|
+
photo_url: string;
|
|
1247
|
+
thumbnail_url: string;
|
|
1248
|
+
photo_width?: number;
|
|
1249
|
+
photo_height?: number;
|
|
1250
|
+
title?: string;
|
|
1251
|
+
description?: string;
|
|
1252
|
+
caption?: string;
|
|
1253
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1254
|
+
caption_entities?: MessageEntity[];
|
|
1255
|
+
show_caption_above_media?: boolean;
|
|
1256
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1257
|
+
input_message_content?: InputMessageContent;
|
|
1258
|
+
}
|
|
1259
|
+
interface InlineQueryResultsButton {
|
|
1260
|
+
text: string;
|
|
1261
|
+
web_app?: WebAppInfo;
|
|
1262
|
+
start_parameter?: string;
|
|
1263
|
+
}
|
|
1264
|
+
interface InlineQueryResultVenue {
|
|
1265
|
+
type: "venue";
|
|
1266
|
+
id: string;
|
|
1267
|
+
latitude: number;
|
|
1268
|
+
longitude: number;
|
|
1269
|
+
title: string;
|
|
1270
|
+
address: string;
|
|
1271
|
+
foursquare_id?: string;
|
|
1272
|
+
foursquare_type?: string;
|
|
1273
|
+
google_place_id?: string;
|
|
1274
|
+
google_place_type?: string;
|
|
1275
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1276
|
+
input_message_content?: InputMessageContent;
|
|
1277
|
+
thumbnail_url?: string;
|
|
1278
|
+
thumbnail_width?: number;
|
|
1279
|
+
thumbnail_height?: number;
|
|
1280
|
+
}
|
|
1281
|
+
interface InlineQueryResultVideo {
|
|
1282
|
+
type: "video";
|
|
1283
|
+
id: string;
|
|
1284
|
+
video_url: string;
|
|
1285
|
+
mime_type: string;
|
|
1286
|
+
thumbnail_url: string;
|
|
1287
|
+
title: string;
|
|
1288
|
+
caption?: string;
|
|
1289
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1290
|
+
caption_entities?: MessageEntity[];
|
|
1291
|
+
show_caption_above_media?: boolean;
|
|
1292
|
+
video_width?: number;
|
|
1293
|
+
video_height?: number;
|
|
1294
|
+
video_duration?: number;
|
|
1295
|
+
description?: string;
|
|
1296
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1297
|
+
input_message_content?: InputMessageContent;
|
|
1298
|
+
}
|
|
1299
|
+
interface InlineQueryResultVoice {
|
|
1300
|
+
type: "voice";
|
|
1301
|
+
id: string;
|
|
1302
|
+
voice_url: string;
|
|
1303
|
+
title: string;
|
|
1304
|
+
caption?: string;
|
|
1305
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1306
|
+
caption_entities?: MessageEntity[];
|
|
1307
|
+
voice_duration?: number;
|
|
1308
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1309
|
+
input_message_content?: InputMessageContent;
|
|
1310
|
+
}
|
|
1311
|
+
interface InputChecklist {
|
|
1312
|
+
title: string;
|
|
1313
|
+
tasks: InputChecklistTask[];
|
|
1314
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1315
|
+
title_entities?: MessageEntity[];
|
|
1316
|
+
others_can_add_tasks?: boolean;
|
|
1317
|
+
others_can_mark_tasks_as_done?: boolean;
|
|
1318
|
+
}
|
|
1319
|
+
interface InputChecklistTask {
|
|
1320
|
+
id: number;
|
|
1321
|
+
text: string;
|
|
1322
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1323
|
+
text_entities?: MessageEntity[];
|
|
1324
|
+
}
|
|
1325
|
+
interface InputContactMessageContent {
|
|
1326
|
+
phone_number: string;
|
|
1327
|
+
first_name: string;
|
|
1328
|
+
last_name?: string;
|
|
1329
|
+
vcard?: string;
|
|
1330
|
+
}
|
|
1331
|
+
type InputFile = {
|
|
1332
|
+
file_content: Uint8Array;
|
|
1333
|
+
file_name: string;
|
|
1334
|
+
};
|
|
1335
|
+
interface InputInvoiceMessageContent {
|
|
1336
|
+
title: string;
|
|
1337
|
+
description: string;
|
|
1338
|
+
payload: string;
|
|
1339
|
+
currency: string;
|
|
1340
|
+
prices: LabeledPrice[];
|
|
1341
|
+
provider_token?: string;
|
|
1342
|
+
max_tip_amount?: number;
|
|
1343
|
+
suggested_tip_amounts?: number[];
|
|
1344
|
+
provider_data?: string;
|
|
1345
|
+
photo_url?: string;
|
|
1346
|
+
photo_size?: number;
|
|
1347
|
+
photo_width?: number;
|
|
1348
|
+
photo_height?: number;
|
|
1349
|
+
need_name?: boolean;
|
|
1350
|
+
need_phone_number?: boolean;
|
|
1351
|
+
need_email?: boolean;
|
|
1352
|
+
need_shipping_address?: boolean;
|
|
1353
|
+
send_phone_number_to_provider?: boolean;
|
|
1354
|
+
send_email_to_provider?: boolean;
|
|
1355
|
+
is_flexible?: boolean;
|
|
1356
|
+
}
|
|
1357
|
+
interface InputLocationMessageContent {
|
|
1358
|
+
latitude: number;
|
|
1359
|
+
longitude: number;
|
|
1360
|
+
horizontal_accuracy?: number;
|
|
1361
|
+
live_period?: number;
|
|
1362
|
+
heading?: number;
|
|
1363
|
+
proximity_alert_radius?: number;
|
|
1364
|
+
}
|
|
1365
|
+
type InputMedia = InputMediaAnimation | InputMediaDocument | InputMediaAudio | InputMediaPhoto | InputMediaVideo;
|
|
1366
|
+
interface InputMediaAnimation {
|
|
1367
|
+
type: "animation";
|
|
1368
|
+
media: string;
|
|
1369
|
+
thumbnail?: string;
|
|
1370
|
+
caption?: string;
|
|
1371
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1372
|
+
caption_entities?: MessageEntity[];
|
|
1373
|
+
show_caption_above_media?: boolean;
|
|
1374
|
+
width?: number;
|
|
1375
|
+
height?: number;
|
|
1376
|
+
duration?: number;
|
|
1377
|
+
has_spoiler?: boolean;
|
|
1378
|
+
}
|
|
1379
|
+
interface InputMediaAudio {
|
|
1380
|
+
type: "audio";
|
|
1381
|
+
media: string;
|
|
1382
|
+
thumbnail?: string;
|
|
1383
|
+
caption?: string;
|
|
1384
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1385
|
+
caption_entities?: MessageEntity[];
|
|
1386
|
+
duration?: number;
|
|
1387
|
+
performer?: string;
|
|
1388
|
+
title?: string;
|
|
1389
|
+
}
|
|
1390
|
+
interface InputMediaDocument {
|
|
1391
|
+
type: "document";
|
|
1392
|
+
media: string;
|
|
1393
|
+
thumbnail?: string;
|
|
1394
|
+
caption?: string;
|
|
1395
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1396
|
+
caption_entities?: MessageEntity[];
|
|
1397
|
+
disable_content_type_detection?: boolean;
|
|
1398
|
+
}
|
|
1399
|
+
interface InputMediaPhoto {
|
|
1400
|
+
type: "photo";
|
|
1401
|
+
media: string;
|
|
1402
|
+
caption?: string;
|
|
1403
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1404
|
+
caption_entities?: MessageEntity[];
|
|
1405
|
+
show_caption_above_media?: boolean;
|
|
1406
|
+
has_spoiler?: boolean;
|
|
1407
|
+
}
|
|
1408
|
+
interface InputMediaVideo {
|
|
1409
|
+
type: "video";
|
|
1410
|
+
media: string;
|
|
1411
|
+
thumbnail?: string;
|
|
1412
|
+
cover?: string;
|
|
1413
|
+
start_timestamp?: number;
|
|
1414
|
+
caption?: string;
|
|
1415
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1416
|
+
caption_entities?: MessageEntity[];
|
|
1417
|
+
show_caption_above_media?: boolean;
|
|
1418
|
+
width?: number;
|
|
1419
|
+
height?: number;
|
|
1420
|
+
duration?: number;
|
|
1421
|
+
supports_streaming?: boolean;
|
|
1422
|
+
has_spoiler?: boolean;
|
|
1423
|
+
}
|
|
1424
|
+
type InputMessageContent = InputTextMessageContent | InputLocationMessageContent | InputVenueMessageContent | InputContactMessageContent | InputInvoiceMessageContent;
|
|
1425
|
+
type InputPaidMedia = InputPaidMediaPhoto | InputPaidMediaVideo;
|
|
1426
|
+
interface InputPaidMediaPhoto {
|
|
1427
|
+
type: "photo";
|
|
1428
|
+
media: string;
|
|
1429
|
+
}
|
|
1430
|
+
interface InputPaidMediaVideo {
|
|
1431
|
+
type: "video";
|
|
1432
|
+
media: string;
|
|
1433
|
+
thumbnail?: string;
|
|
1434
|
+
cover?: string;
|
|
1435
|
+
start_timestamp?: number;
|
|
1436
|
+
width?: number;
|
|
1437
|
+
height?: number;
|
|
1438
|
+
duration?: number;
|
|
1439
|
+
supports_streaming?: boolean;
|
|
1440
|
+
}
|
|
1441
|
+
interface InputPollOption {
|
|
1442
|
+
text: string;
|
|
1443
|
+
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
1444
|
+
text_entities?: MessageEntity[];
|
|
1445
|
+
}
|
|
1446
|
+
type InputProfilePhoto = InputProfilePhotoStatic | InputProfilePhotoAnimated;
|
|
1447
|
+
interface InputProfilePhotoAnimated {
|
|
1448
|
+
type: "animated";
|
|
1449
|
+
animation: string;
|
|
1450
|
+
main_frame_timestamp?: number;
|
|
1451
|
+
}
|
|
1452
|
+
interface InputProfilePhotoStatic {
|
|
1453
|
+
type: "static";
|
|
1454
|
+
photo: string;
|
|
1455
|
+
}
|
|
1456
|
+
interface InputSticker {
|
|
1457
|
+
sticker: string;
|
|
1458
|
+
format: "static" | "animated" | "video";
|
|
1459
|
+
emoji_list: string[];
|
|
1460
|
+
mask_position?: MaskPosition;
|
|
1461
|
+
keywords?: string[];
|
|
1462
|
+
}
|
|
1463
|
+
type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
|
|
1464
|
+
interface InputStoryContentPhoto {
|
|
1465
|
+
type: "photo";
|
|
1466
|
+
photo: string;
|
|
1467
|
+
}
|
|
1468
|
+
interface InputStoryContentVideo {
|
|
1469
|
+
type: "video";
|
|
1470
|
+
video: string;
|
|
1471
|
+
duration?: number;
|
|
1472
|
+
cover_frame_timestamp?: number;
|
|
1473
|
+
is_animation?: boolean;
|
|
1474
|
+
}
|
|
1475
|
+
interface InputTextMessageContent {
|
|
1476
|
+
message_text: string;
|
|
1477
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
1478
|
+
entities?: MessageEntity[];
|
|
1479
|
+
link_preview_options?: LinkPreviewOptions;
|
|
1480
|
+
}
|
|
1481
|
+
interface InputVenueMessageContent {
|
|
1482
|
+
latitude: number;
|
|
1483
|
+
longitude: number;
|
|
1484
|
+
title: string;
|
|
1485
|
+
address: string;
|
|
1486
|
+
foursquare_id?: string;
|
|
1487
|
+
foursquare_type?: string;
|
|
1488
|
+
google_place_id?: string;
|
|
1489
|
+
google_place_type?: string;
|
|
1490
|
+
}
|
|
1491
|
+
interface Invoice {
|
|
1492
|
+
title: string;
|
|
1493
|
+
description: string;
|
|
1494
|
+
start_parameter: string;
|
|
1495
|
+
currency: string;
|
|
1496
|
+
total_amount: number;
|
|
1497
|
+
}
|
|
1498
|
+
interface KeyboardButton {
|
|
1499
|
+
text: string;
|
|
1500
|
+
request_users?: KeyboardButtonRequestUsers;
|
|
1501
|
+
request_chat?: KeyboardButtonRequestChat;
|
|
1502
|
+
request_contact?: boolean;
|
|
1503
|
+
request_location?: boolean;
|
|
1504
|
+
request_poll?: KeyboardButtonPollType;
|
|
1505
|
+
web_app?: WebAppInfo;
|
|
1506
|
+
}
|
|
1507
|
+
interface KeyboardButtonPollType {
|
|
1508
|
+
type?: string;
|
|
1509
|
+
}
|
|
1510
|
+
interface KeyboardButtonRequestChat {
|
|
1511
|
+
request_id: number;
|
|
1512
|
+
chat_is_channel: boolean;
|
|
1513
|
+
chat_is_forum?: boolean;
|
|
1514
|
+
chat_has_username?: boolean;
|
|
1515
|
+
chat_is_created?: boolean;
|
|
1516
|
+
user_administrator_rights?: ChatAdministratorRights;
|
|
1517
|
+
bot_administrator_rights?: ChatAdministratorRights;
|
|
1518
|
+
bot_is_member?: boolean;
|
|
1519
|
+
request_title?: boolean;
|
|
1520
|
+
request_username?: boolean;
|
|
1521
|
+
request_photo?: boolean;
|
|
1522
|
+
}
|
|
1523
|
+
interface KeyboardButtonRequestUsers {
|
|
1524
|
+
request_id: number;
|
|
1525
|
+
user_is_bot?: boolean;
|
|
1526
|
+
user_is_premium?: boolean;
|
|
1527
|
+
max_quantity?: number;
|
|
1528
|
+
request_name?: boolean;
|
|
1529
|
+
request_username?: boolean;
|
|
1530
|
+
request_photo?: boolean;
|
|
1531
|
+
}
|
|
1532
|
+
interface LabeledPrice {
|
|
1533
|
+
label: string;
|
|
1534
|
+
amount: number;
|
|
1535
|
+
}
|
|
1536
|
+
interface LinkPreviewOptions {
|
|
1537
|
+
is_disabled?: boolean;
|
|
1538
|
+
url?: string;
|
|
1539
|
+
prefer_small_media?: boolean;
|
|
1540
|
+
prefer_large_media?: boolean;
|
|
1541
|
+
show_above_text?: boolean;
|
|
1542
|
+
}
|
|
1543
|
+
interface Location {
|
|
1544
|
+
latitude: number;
|
|
1545
|
+
longitude: number;
|
|
1546
|
+
horizontal_accuracy?: number;
|
|
1547
|
+
live_period?: number;
|
|
1548
|
+
heading?: number;
|
|
1549
|
+
proximity_alert_radius?: number;
|
|
1550
|
+
}
|
|
1551
|
+
interface LocationAddress {
|
|
1552
|
+
country_code: string;
|
|
1553
|
+
state?: string;
|
|
1554
|
+
city?: string;
|
|
1555
|
+
street?: string;
|
|
1556
|
+
}
|
|
1557
|
+
interface LoginUrl {
|
|
1558
|
+
url: string;
|
|
1559
|
+
forward_text?: string;
|
|
1560
|
+
bot_username?: string;
|
|
1561
|
+
request_write_access?: boolean;
|
|
1562
|
+
}
|
|
1563
|
+
interface MaskPosition {
|
|
1564
|
+
point: string;
|
|
1565
|
+
x_shift: number;
|
|
1566
|
+
y_shift: number;
|
|
1567
|
+
scale: number;
|
|
1568
|
+
}
|
|
1569
|
+
type MaybeInaccessibleMessage = Message | InaccessibleMessage;
|
|
1570
|
+
type MenuButton = MenuButtonCommands | MenuButtonWebApp | MenuButtonDefault;
|
|
1571
|
+
interface MenuButtonCommands {
|
|
1572
|
+
type: "commands";
|
|
1573
|
+
}
|
|
1574
|
+
interface MenuButtonDefault {
|
|
1575
|
+
type: "default";
|
|
1576
|
+
}
|
|
1577
|
+
interface MenuButtonWebApp {
|
|
1578
|
+
type: "web_app";
|
|
1579
|
+
text: string;
|
|
1580
|
+
web_app: WebAppInfo;
|
|
1581
|
+
}
|
|
1582
|
+
interface Message {
|
|
1583
|
+
message_id: number;
|
|
1584
|
+
date: number;
|
|
1585
|
+
chat: Chat;
|
|
1586
|
+
message_thread_id?: number;
|
|
1587
|
+
direct_messages_topic?: DirectMessagesTopic;
|
|
1588
|
+
from?: User;
|
|
1589
|
+
sender_chat?: Chat;
|
|
1590
|
+
sender_boost_count?: number;
|
|
1591
|
+
sender_business_bot?: User;
|
|
1592
|
+
business_connection_id?: string;
|
|
1593
|
+
forward_origin?: MessageOrigin;
|
|
1594
|
+
is_topic_message?: boolean;
|
|
1595
|
+
is_automatic_forward?: boolean;
|
|
1596
|
+
reply_to_message?: Message;
|
|
1597
|
+
external_reply?: ExternalReplyInfo;
|
|
1598
|
+
quote?: TextQuote;
|
|
1599
|
+
reply_to_story?: Story;
|
|
1600
|
+
reply_to_checklist_task_id?: number;
|
|
1601
|
+
via_bot?: User;
|
|
1602
|
+
edit_date?: number;
|
|
1603
|
+
has_protected_content?: boolean;
|
|
1604
|
+
is_from_offline?: boolean;
|
|
1605
|
+
is_paid_post?: boolean;
|
|
1606
|
+
media_group_id?: string;
|
|
1607
|
+
author_signature?: string;
|
|
1608
|
+
paid_star_count?: number;
|
|
1609
|
+
text?: string;
|
|
1610
|
+
entities?: MessageEntity[];
|
|
1611
|
+
link_preview_options?: LinkPreviewOptions;
|
|
1612
|
+
suggested_post_info?: SuggestedPostInfo;
|
|
1613
|
+
effect_id?: string;
|
|
1614
|
+
animation?: Animation;
|
|
1615
|
+
audio?: Audio;
|
|
1616
|
+
document?: Document;
|
|
1617
|
+
paid_media?: PaidMediaInfo;
|
|
1618
|
+
photo?: PhotoSize[];
|
|
1619
|
+
sticker?: Sticker;
|
|
1620
|
+
story?: Story;
|
|
1621
|
+
video?: Video;
|
|
1622
|
+
video_note?: VideoNote;
|
|
1623
|
+
voice?: Voice;
|
|
1624
|
+
caption?: string;
|
|
1625
|
+
caption_entities?: MessageEntity[];
|
|
1626
|
+
show_caption_above_media?: boolean;
|
|
1627
|
+
has_media_spoiler?: boolean;
|
|
1628
|
+
checklist?: Checklist;
|
|
1629
|
+
contact?: Contact;
|
|
1630
|
+
dice?: Dice;
|
|
1631
|
+
game?: Game;
|
|
1632
|
+
poll?: Poll;
|
|
1633
|
+
venue?: Venue;
|
|
1634
|
+
location?: Location;
|
|
1635
|
+
new_chat_members?: User[];
|
|
1636
|
+
left_chat_member?: User;
|
|
1637
|
+
new_chat_title?: string;
|
|
1638
|
+
new_chat_photo?: PhotoSize[];
|
|
1639
|
+
delete_chat_photo?: boolean;
|
|
1640
|
+
group_chat_created?: boolean;
|
|
1641
|
+
supergroup_chat_created?: boolean;
|
|
1642
|
+
channel_chat_created?: boolean;
|
|
1643
|
+
message_auto_delete_timer_changed?: MessageAutoDeleteTimerChanged;
|
|
1644
|
+
migrate_to_chat_id?: number;
|
|
1645
|
+
migrate_from_chat_id?: number;
|
|
1646
|
+
pinned_message?: MaybeInaccessibleMessage;
|
|
1647
|
+
invoice?: Invoice;
|
|
1648
|
+
successful_payment?: SuccessfulPayment;
|
|
1649
|
+
refunded_payment?: RefundedPayment;
|
|
1650
|
+
users_shared?: UsersShared;
|
|
1651
|
+
chat_shared?: ChatShared;
|
|
1652
|
+
gift?: GiftInfo;
|
|
1653
|
+
unique_gift?: UniqueGiftInfo;
|
|
1654
|
+
connected_website?: string;
|
|
1655
|
+
write_access_allowed?: WriteAccessAllowed;
|
|
1656
|
+
passport_data?: PassportData;
|
|
1657
|
+
proximity_alert_triggered?: ProximityAlertTriggered;
|
|
1658
|
+
boost_added?: ChatBoostAdded;
|
|
1659
|
+
chat_background_set?: ChatBackground;
|
|
1660
|
+
checklist_tasks_done?: ChecklistTasksDone;
|
|
1661
|
+
checklist_tasks_added?: ChecklistTasksAdded;
|
|
1662
|
+
direct_message_price_changed?: DirectMessagePriceChanged;
|
|
1663
|
+
forum_topic_created?: ForumTopicCreated;
|
|
1664
|
+
forum_topic_edited?: ForumTopicEdited;
|
|
1665
|
+
forum_topic_closed?: ForumTopicClosed;
|
|
1666
|
+
forum_topic_reopened?: ForumTopicReopened;
|
|
1667
|
+
general_forum_topic_hidden?: GeneralForumTopicHidden;
|
|
1668
|
+
general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
|
|
1669
|
+
giveaway_created?: GiveawayCreated;
|
|
1670
|
+
giveaway?: Giveaway;
|
|
1671
|
+
giveaway_winners?: GiveawayWinners;
|
|
1672
|
+
giveaway_completed?: GiveawayCompleted;
|
|
1673
|
+
paid_message_price_changed?: PaidMessagePriceChanged;
|
|
1674
|
+
suggested_post_approved?: SuggestedPostApproved;
|
|
1675
|
+
suggested_post_approval_failed?: SuggestedPostApprovalFailed;
|
|
1676
|
+
suggested_post_declined?: SuggestedPostDeclined;
|
|
1677
|
+
suggested_post_paid?: SuggestedPostPaid;
|
|
1678
|
+
suggested_post_refunded?: SuggestedPostRefunded;
|
|
1679
|
+
video_chat_scheduled?: VideoChatScheduled;
|
|
1680
|
+
video_chat_started?: VideoChatStarted;
|
|
1681
|
+
video_chat_ended?: VideoChatEnded;
|
|
1682
|
+
video_chat_participants_invited?: VideoChatParticipantsInvited;
|
|
1683
|
+
web_app_data?: WebAppData;
|
|
1684
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
1685
|
+
}
|
|
1686
|
+
interface MessageAutoDeleteTimerChanged {
|
|
1687
|
+
message_auto_delete_time: number;
|
|
1688
|
+
}
|
|
1689
|
+
interface MessageEntity {
|
|
1690
|
+
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";
|
|
1691
|
+
offset: number;
|
|
1692
|
+
length: number;
|
|
1693
|
+
url?: string;
|
|
1694
|
+
user?: User;
|
|
1695
|
+
language?: string;
|
|
1696
|
+
custom_emoji_id?: string;
|
|
1697
|
+
}
|
|
1698
|
+
interface MessageId {
|
|
1699
|
+
message_id: number;
|
|
1700
|
+
}
|
|
1701
|
+
type MessageOrigin = MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel;
|
|
1702
|
+
interface MessageOriginChannel {
|
|
1703
|
+
type: "channel";
|
|
1704
|
+
date: number;
|
|
1705
|
+
chat: Chat;
|
|
1706
|
+
message_id: number;
|
|
1707
|
+
author_signature?: string;
|
|
1708
|
+
}
|
|
1709
|
+
interface MessageOriginChat {
|
|
1710
|
+
type: "chat";
|
|
1711
|
+
date: number;
|
|
1712
|
+
sender_chat: Chat;
|
|
1713
|
+
author_signature?: string;
|
|
1714
|
+
}
|
|
1715
|
+
interface MessageOriginHiddenUser {
|
|
1716
|
+
type: "hidden_user";
|
|
1717
|
+
date: number;
|
|
1718
|
+
sender_user_name: string;
|
|
1719
|
+
}
|
|
1720
|
+
interface MessageOriginUser {
|
|
1721
|
+
type: "user";
|
|
1722
|
+
date: number;
|
|
1723
|
+
sender_user: User;
|
|
1724
|
+
}
|
|
1725
|
+
interface MessageReactionCountUpdated {
|
|
1726
|
+
chat: Chat;
|
|
1727
|
+
message_id: number;
|
|
1728
|
+
date: number;
|
|
1729
|
+
reactions: ReactionCount[];
|
|
1730
|
+
}
|
|
1731
|
+
interface MessageReactionUpdated {
|
|
1732
|
+
chat: Chat;
|
|
1733
|
+
message_id: number;
|
|
1734
|
+
date: number;
|
|
1735
|
+
old_reaction: ReactionType[];
|
|
1736
|
+
new_reaction: ReactionType[];
|
|
1737
|
+
user?: User;
|
|
1738
|
+
actor_chat?: Chat;
|
|
1739
|
+
}
|
|
1740
|
+
interface OrderInfo {
|
|
1741
|
+
name?: string;
|
|
1742
|
+
phone_number?: string;
|
|
1743
|
+
email?: string;
|
|
1744
|
+
shipping_address?: ShippingAddress;
|
|
1745
|
+
}
|
|
1746
|
+
type OwnedGift = OwnedGiftRegular | OwnedGiftUnique;
|
|
1747
|
+
interface OwnedGiftRegular {
|
|
1748
|
+
type: "regular";
|
|
1749
|
+
gift: Gift;
|
|
1750
|
+
send_date: number;
|
|
1751
|
+
owned_gift_id?: string;
|
|
1752
|
+
sender_user?: User;
|
|
1753
|
+
text?: string;
|
|
1754
|
+
entities?: MessageEntity[];
|
|
1755
|
+
is_private?: boolean;
|
|
1756
|
+
is_saved?: boolean;
|
|
1757
|
+
can_be_upgraded?: boolean;
|
|
1758
|
+
was_refunded?: boolean;
|
|
1759
|
+
convert_star_count?: number;
|
|
1760
|
+
prepaid_upgrade_star_count?: number;
|
|
1761
|
+
}
|
|
1762
|
+
interface OwnedGifts {
|
|
1763
|
+
total_count: number;
|
|
1764
|
+
gifts: OwnedGift[];
|
|
1765
|
+
next_offset?: string;
|
|
1766
|
+
}
|
|
1767
|
+
interface OwnedGiftUnique {
|
|
1768
|
+
type: "unique";
|
|
1769
|
+
gift: UniqueGift;
|
|
1770
|
+
send_date: number;
|
|
1771
|
+
owned_gift_id?: string;
|
|
1772
|
+
sender_user?: User;
|
|
1773
|
+
is_saved?: boolean;
|
|
1774
|
+
can_be_transferred?: boolean;
|
|
1775
|
+
transfer_star_count?: number;
|
|
1776
|
+
next_transfer_date?: number;
|
|
1777
|
+
}
|
|
1778
|
+
type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo;
|
|
1779
|
+
interface PaidMediaInfo {
|
|
1780
|
+
star_count: number;
|
|
1781
|
+
paid_media: PaidMedia[];
|
|
1782
|
+
}
|
|
1783
|
+
interface PaidMediaPhoto {
|
|
1784
|
+
type: "photo";
|
|
1785
|
+
photo: PhotoSize[];
|
|
1786
|
+
}
|
|
1787
|
+
interface PaidMediaPreview {
|
|
1788
|
+
type: "preview";
|
|
1789
|
+
width?: number;
|
|
1790
|
+
height?: number;
|
|
1791
|
+
duration?: number;
|
|
1792
|
+
}
|
|
1793
|
+
interface PaidMediaPurchased {
|
|
1794
|
+
from: User;
|
|
1795
|
+
paid_media_payload: string;
|
|
1796
|
+
}
|
|
1797
|
+
interface PaidMediaVideo {
|
|
1798
|
+
type: "video";
|
|
1799
|
+
video: Video;
|
|
1800
|
+
}
|
|
1801
|
+
interface PaidMessagePriceChanged {
|
|
1802
|
+
paid_message_star_count: number;
|
|
1803
|
+
}
|
|
1804
|
+
interface PassportData {
|
|
1805
|
+
data: EncryptedPassportElement[];
|
|
1806
|
+
credentials: EncryptedCredentials;
|
|
1807
|
+
}
|
|
1808
|
+
type PassportElementError = PassportElementErrorDataField | PassportElementErrorFrontSide | PassportElementErrorReverseSide | PassportElementErrorSelfie | PassportElementErrorFile | PassportElementErrorFiles | PassportElementErrorTranslationFile | PassportElementErrorTranslationFiles | PassportElementErrorUnspecified;
|
|
1809
|
+
interface PassportElementErrorDataField {
|
|
1810
|
+
source: "data";
|
|
1811
|
+
type: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address";
|
|
1812
|
+
field_name: string;
|
|
1813
|
+
data_hash: string;
|
|
1814
|
+
message: string;
|
|
1815
|
+
}
|
|
1816
|
+
interface PassportElementErrorFile {
|
|
1817
|
+
source: "file";
|
|
1818
|
+
type: "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1819
|
+
file_hash: string;
|
|
1820
|
+
message: string;
|
|
1821
|
+
}
|
|
1822
|
+
interface PassportElementErrorFiles {
|
|
1823
|
+
source: "files";
|
|
1824
|
+
type: "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1825
|
+
file_hashes: string[];
|
|
1826
|
+
message: string;
|
|
1827
|
+
}
|
|
1828
|
+
interface PassportElementErrorFrontSide {
|
|
1829
|
+
source: "front_side";
|
|
1830
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
1831
|
+
file_hash: string;
|
|
1832
|
+
message: string;
|
|
1833
|
+
}
|
|
1834
|
+
interface PassportElementErrorReverseSide {
|
|
1835
|
+
source: "reverse_side";
|
|
1836
|
+
type: "driver_license" | "identity_card";
|
|
1837
|
+
file_hash: string;
|
|
1838
|
+
message: string;
|
|
1839
|
+
}
|
|
1840
|
+
interface PassportElementErrorSelfie {
|
|
1841
|
+
source: "selfie";
|
|
1842
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
1843
|
+
file_hash: string;
|
|
1844
|
+
message: string;
|
|
1845
|
+
}
|
|
1846
|
+
interface PassportElementErrorTranslationFile {
|
|
1847
|
+
source: "translation_file";
|
|
1848
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport" | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1849
|
+
file_hash: string;
|
|
1850
|
+
message: string;
|
|
1851
|
+
}
|
|
1852
|
+
interface PassportElementErrorTranslationFiles {
|
|
1853
|
+
source: "translation_files";
|
|
1854
|
+
type: "passport" | "driver_license" | "identity_card" | "internal_passport" | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1855
|
+
file_hashes: string[];
|
|
1856
|
+
message: string;
|
|
1857
|
+
}
|
|
1858
|
+
interface PassportElementErrorUnspecified {
|
|
1859
|
+
source: "unspecified";
|
|
1860
|
+
type: string;
|
|
1861
|
+
element_hash: string;
|
|
1862
|
+
message: string;
|
|
1863
|
+
}
|
|
1864
|
+
interface PassportFile {
|
|
1865
|
+
file_id: string;
|
|
1866
|
+
file_unique_id: string;
|
|
1867
|
+
file_size: number;
|
|
1868
|
+
file_date: number;
|
|
1869
|
+
}
|
|
1870
|
+
interface PhotoSize {
|
|
1871
|
+
file_id: string;
|
|
1872
|
+
file_unique_id: string;
|
|
1873
|
+
width: number;
|
|
1874
|
+
height: number;
|
|
1875
|
+
file_size?: number;
|
|
1876
|
+
}
|
|
1877
|
+
interface Poll {
|
|
1878
|
+
id: string;
|
|
1879
|
+
question: string;
|
|
1880
|
+
options: PollOption[];
|
|
1881
|
+
total_voter_count: number;
|
|
1882
|
+
is_closed: boolean;
|
|
1883
|
+
is_anonymous: boolean;
|
|
1884
|
+
type: "regular" | "quiz";
|
|
1885
|
+
allows_multiple_answers: boolean;
|
|
1886
|
+
question_entities?: MessageEntity[];
|
|
1887
|
+
correct_option_id?: number;
|
|
1888
|
+
explanation?: string;
|
|
1889
|
+
explanation_entities?: MessageEntity[];
|
|
1890
|
+
open_period?: number;
|
|
1891
|
+
close_date?: number;
|
|
1892
|
+
}
|
|
1893
|
+
interface PollAnswer {
|
|
1894
|
+
poll_id: string;
|
|
1895
|
+
option_ids: number[];
|
|
1896
|
+
voter_chat?: Chat;
|
|
1897
|
+
user?: User;
|
|
1898
|
+
}
|
|
1899
|
+
interface PollOption {
|
|
1900
|
+
text: string;
|
|
1901
|
+
voter_count: number;
|
|
1902
|
+
text_entities?: MessageEntity[];
|
|
1903
|
+
}
|
|
1904
|
+
interface PreCheckoutQuery {
|
|
1905
|
+
id: string;
|
|
1906
|
+
from: User;
|
|
1907
|
+
currency: string;
|
|
1908
|
+
total_amount: number;
|
|
1909
|
+
invoice_payload: string;
|
|
1910
|
+
shipping_option_id?: string;
|
|
1911
|
+
order_info?: OrderInfo;
|
|
1912
|
+
}
|
|
1913
|
+
interface PreparedInlineMessage {
|
|
1914
|
+
id: string;
|
|
1915
|
+
expiration_date: number;
|
|
1916
|
+
}
|
|
1917
|
+
interface ProximityAlertTriggered {
|
|
1918
|
+
traveler: User;
|
|
1919
|
+
watcher: User;
|
|
1920
|
+
distance: number;
|
|
1921
|
+
}
|
|
1922
|
+
interface ReactionCount {
|
|
1923
|
+
type: ReactionType;
|
|
1924
|
+
total_count: number;
|
|
1925
|
+
}
|
|
1926
|
+
type ReactionType = ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid;
|
|
1927
|
+
interface ReactionTypeCustomEmoji {
|
|
1928
|
+
type: "custom_emoji";
|
|
1929
|
+
custom_emoji_id: string;
|
|
1930
|
+
}
|
|
1931
|
+
interface ReactionTypeEmoji {
|
|
1932
|
+
type: "emoji";
|
|
1933
|
+
emoji: "❤" | "👍" | "👎" | "🔥" | "🥰" | "👏" | "😁" | "🤔" | "🤯" | "😱" | "🤬" | "😢" | "🎉" | "🤩" | "🤮" | "💩" | "🙏" | "👌" | "🕊" | "🤡" | "🥱" | "🥴" | "😍" | "🐳" | "❤🔥" | "🌚" | "🌭" | "💯" | "🤣" | "⚡" | "🍌" | "🏆" | "💔" | "🤨" | "😐" | "🍓" | "🍾" | "💋" | "🖕" | "😈" | "😴" | "😭" | "🤓" | "👻" | "👨💻" | "👀" | "🎃" | "🙈" | "😇" | "😨" | "🤝" | "✍" | "🤗" | "🫡" | "🎅" | "🎄" | "☃" | "💅" | "🤪" | "🗿" | "🆒" | "💘" | "🙉" | "🦄" | "😘" | "💊" | "🙊" | "😎" | "👾" | "🤷♂" | "🤷" | "🤷♀" | "😡";
|
|
1934
|
+
}
|
|
1935
|
+
interface ReactionTypePaid {
|
|
1936
|
+
type: "paid";
|
|
1937
|
+
}
|
|
1938
|
+
interface RefundedPayment {
|
|
1939
|
+
currency: "XTR";
|
|
1940
|
+
total_amount: number;
|
|
1941
|
+
invoice_payload: string;
|
|
1942
|
+
telegram_payment_charge_id: string;
|
|
1943
|
+
provider_payment_charge_id?: string;
|
|
1944
|
+
}
|
|
1945
|
+
interface ReplyKeyboardMarkup {
|
|
1946
|
+
keyboard: KeyboardButton[][];
|
|
1947
|
+
is_persistent?: boolean;
|
|
1948
|
+
resize_keyboard?: boolean;
|
|
1949
|
+
one_time_keyboard?: boolean;
|
|
1950
|
+
input_field_placeholder?: string;
|
|
1951
|
+
selective?: boolean;
|
|
1952
|
+
}
|
|
1953
|
+
interface ReplyKeyboardRemove {
|
|
1954
|
+
remove_keyboard: boolean;
|
|
1955
|
+
selective?: boolean;
|
|
1956
|
+
}
|
|
1957
|
+
interface ReplyParameters {
|
|
1958
|
+
message_id: number;
|
|
1959
|
+
chat_id?: number | string;
|
|
1960
|
+
allow_sending_without_reply?: boolean;
|
|
1961
|
+
quote?: string;
|
|
1962
|
+
quote_parse_mode?: "HTML" | "MarkdownV2";
|
|
1963
|
+
quote_entities?: MessageEntity[];
|
|
1964
|
+
quote_position?: number;
|
|
1965
|
+
checklist_task_id?: number;
|
|
1966
|
+
}
|
|
1967
|
+
interface ResponseParameters {
|
|
1968
|
+
migrate_to_chat_id?: number;
|
|
1969
|
+
retry_after?: number;
|
|
1970
|
+
}
|
|
1971
|
+
type RevenueWithdrawalState = RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed;
|
|
1972
|
+
interface RevenueWithdrawalStateFailed {
|
|
1973
|
+
type: "failed";
|
|
1974
|
+
}
|
|
1975
|
+
interface RevenueWithdrawalStatePending {
|
|
1976
|
+
type: "pending";
|
|
1977
|
+
}
|
|
1978
|
+
interface RevenueWithdrawalStateSucceeded {
|
|
1979
|
+
type: "succeeded";
|
|
1980
|
+
date: number;
|
|
1981
|
+
url: string;
|
|
1982
|
+
}
|
|
1983
|
+
interface SentWebAppMessage {
|
|
1984
|
+
inline_message_id?: string;
|
|
1985
|
+
}
|
|
1986
|
+
interface SharedUser {
|
|
1987
|
+
user_id: number;
|
|
1988
|
+
first_name?: string;
|
|
1989
|
+
last_name?: string;
|
|
1990
|
+
username?: string;
|
|
1991
|
+
photo?: PhotoSize[];
|
|
1992
|
+
}
|
|
1993
|
+
interface ShippingAddress {
|
|
1994
|
+
country_code: string;
|
|
1995
|
+
state: string;
|
|
1996
|
+
city: string;
|
|
1997
|
+
street_line1: string;
|
|
1998
|
+
street_line2: string;
|
|
1999
|
+
post_code: string;
|
|
2000
|
+
}
|
|
2001
|
+
interface ShippingOption {
|
|
2002
|
+
id: string;
|
|
2003
|
+
title: string;
|
|
2004
|
+
prices: LabeledPrice[];
|
|
2005
|
+
}
|
|
2006
|
+
interface ShippingQuery {
|
|
2007
|
+
id: string;
|
|
2008
|
+
from: User;
|
|
2009
|
+
invoice_payload: string;
|
|
2010
|
+
shipping_address: ShippingAddress;
|
|
2011
|
+
}
|
|
2012
|
+
interface StarAmount {
|
|
2013
|
+
amount: number;
|
|
2014
|
+
nanostar_amount?: number;
|
|
2015
|
+
}
|
|
2016
|
+
interface StarTransaction {
|
|
2017
|
+
id: string;
|
|
2018
|
+
amount: number;
|
|
2019
|
+
date: number;
|
|
2020
|
+
nanostar_amount?: number;
|
|
2021
|
+
source?: TransactionPartner;
|
|
2022
|
+
receiver?: TransactionPartner;
|
|
2023
|
+
}
|
|
2024
|
+
interface StarTransactions {
|
|
2025
|
+
transactions: StarTransaction[];
|
|
2026
|
+
}
|
|
2027
|
+
interface Sticker {
|
|
2028
|
+
file_id: string;
|
|
2029
|
+
file_unique_id: string;
|
|
2030
|
+
type: "regular" | "mask" | "custom_emoji";
|
|
2031
|
+
width: number;
|
|
2032
|
+
height: number;
|
|
2033
|
+
is_animated: boolean;
|
|
2034
|
+
is_video: boolean;
|
|
2035
|
+
thumbnail?: PhotoSize;
|
|
2036
|
+
emoji?: string;
|
|
2037
|
+
set_name?: string;
|
|
2038
|
+
premium_animation?: File;
|
|
2039
|
+
mask_position?: MaskPosition;
|
|
2040
|
+
custom_emoji_id?: string;
|
|
2041
|
+
needs_repainting?: boolean;
|
|
2042
|
+
file_size?: number;
|
|
2043
|
+
}
|
|
2044
|
+
interface StickerSet {
|
|
2045
|
+
name: string;
|
|
2046
|
+
title: string;
|
|
2047
|
+
sticker_type: "regular" | "mask" | "custom_emoji";
|
|
2048
|
+
stickers: Sticker[];
|
|
2049
|
+
thumbnail?: PhotoSize;
|
|
2050
|
+
}
|
|
2051
|
+
interface Story {
|
|
2052
|
+
chat: Chat;
|
|
2053
|
+
id: number;
|
|
2054
|
+
}
|
|
2055
|
+
interface StoryArea {
|
|
2056
|
+
position: StoryAreaPosition;
|
|
2057
|
+
type: StoryAreaType;
|
|
2058
|
+
}
|
|
2059
|
+
interface StoryAreaPosition {
|
|
2060
|
+
x_percentage: number;
|
|
2061
|
+
y_percentage: number;
|
|
2062
|
+
width_percentage: number;
|
|
2063
|
+
height_percentage: number;
|
|
2064
|
+
rotation_angle: number;
|
|
2065
|
+
corner_radius_percentage: number;
|
|
2066
|
+
}
|
|
2067
|
+
type StoryAreaType = StoryAreaTypeLocation | StoryAreaTypeSuggestedReaction | StoryAreaTypeLink | StoryAreaTypeWeather | StoryAreaTypeUniqueGift;
|
|
2068
|
+
interface StoryAreaTypeLink {
|
|
2069
|
+
type: "link";
|
|
2070
|
+
url: string;
|
|
2071
|
+
}
|
|
2072
|
+
interface StoryAreaTypeLocation {
|
|
2073
|
+
type: "location";
|
|
2074
|
+
latitude: number;
|
|
2075
|
+
longitude: number;
|
|
2076
|
+
address?: LocationAddress;
|
|
2077
|
+
}
|
|
2078
|
+
interface StoryAreaTypeSuggestedReaction {
|
|
2079
|
+
type: "suggested_reaction";
|
|
2080
|
+
reaction_type: ReactionType;
|
|
2081
|
+
is_dark?: boolean;
|
|
2082
|
+
is_flipped?: boolean;
|
|
2083
|
+
}
|
|
2084
|
+
interface StoryAreaTypeUniqueGift {
|
|
2085
|
+
type: "unique_gift";
|
|
2086
|
+
name: string;
|
|
2087
|
+
}
|
|
2088
|
+
interface StoryAreaTypeWeather {
|
|
2089
|
+
type: "weather";
|
|
2090
|
+
temperature: number;
|
|
2091
|
+
emoji: string;
|
|
2092
|
+
background_color: number;
|
|
2093
|
+
}
|
|
2094
|
+
interface SuccessfulPayment {
|
|
2095
|
+
currency: string;
|
|
2096
|
+
total_amount: number;
|
|
2097
|
+
invoice_payload: string;
|
|
2098
|
+
telegram_payment_charge_id: string;
|
|
2099
|
+
provider_payment_charge_id: string;
|
|
2100
|
+
subscription_expiration_date?: number;
|
|
2101
|
+
is_recurring?: boolean;
|
|
2102
|
+
is_first_recurring?: boolean;
|
|
2103
|
+
shipping_option_id?: string;
|
|
2104
|
+
order_info?: OrderInfo;
|
|
2105
|
+
}
|
|
2106
|
+
interface SuggestedPostApprovalFailed {
|
|
2107
|
+
price: SuggestedPostPrice;
|
|
2108
|
+
suggested_post_message?: Message;
|
|
2109
|
+
}
|
|
2110
|
+
interface SuggestedPostApproved {
|
|
2111
|
+
send_date: number;
|
|
2112
|
+
suggested_post_message?: Message;
|
|
2113
|
+
price?: SuggestedPostPrice;
|
|
2114
|
+
}
|
|
2115
|
+
interface SuggestedPostDeclined {
|
|
2116
|
+
suggested_post_message?: Message;
|
|
2117
|
+
comment?: string;
|
|
2118
|
+
}
|
|
2119
|
+
interface SuggestedPostInfo {
|
|
2120
|
+
state: "pending" | "approved" | "declined";
|
|
2121
|
+
price?: SuggestedPostPrice;
|
|
2122
|
+
send_date?: number;
|
|
2123
|
+
}
|
|
2124
|
+
interface SuggestedPostPaid {
|
|
2125
|
+
currency: "XTR" | "TON";
|
|
2126
|
+
suggested_post_message?: Message;
|
|
2127
|
+
amount?: number;
|
|
2128
|
+
star_amount?: StarAmount;
|
|
2129
|
+
}
|
|
2130
|
+
interface SuggestedPostParameters {
|
|
2131
|
+
price?: SuggestedPostPrice;
|
|
2132
|
+
send_date?: number;
|
|
2133
|
+
}
|
|
2134
|
+
interface SuggestedPostPrice {
|
|
2135
|
+
currency: "XTR" | "TON";
|
|
2136
|
+
amount: number;
|
|
2137
|
+
}
|
|
2138
|
+
interface SuggestedPostRefunded {
|
|
2139
|
+
reason: "post_deleted" | "payment_refunded";
|
|
2140
|
+
suggested_post_message?: Message;
|
|
2141
|
+
}
|
|
2142
|
+
interface SwitchInlineQueryChosenChat {
|
|
2143
|
+
query?: string;
|
|
2144
|
+
allow_user_chats?: boolean;
|
|
2145
|
+
allow_bot_chats?: boolean;
|
|
2146
|
+
allow_group_chats?: boolean;
|
|
2147
|
+
allow_channel_chats?: boolean;
|
|
2148
|
+
}
|
|
2149
|
+
interface TextQuote {
|
|
2150
|
+
text: string;
|
|
2151
|
+
position: number;
|
|
2152
|
+
entities?: MessageEntity[];
|
|
2153
|
+
is_manual?: boolean;
|
|
2154
|
+
}
|
|
2155
|
+
type TransactionPartner = TransactionPartnerUser | TransactionPartnerChat | TransactionPartnerAffiliateProgram | TransactionPartnerFragment | TransactionPartnerTelegramAds | TransactionPartnerTelegramApi | TransactionPartnerOther;
|
|
2156
|
+
interface TransactionPartnerAffiliateProgram {
|
|
2157
|
+
type: "affiliate_program";
|
|
2158
|
+
commission_per_mille: number;
|
|
2159
|
+
sponsor_user?: User;
|
|
2160
|
+
}
|
|
2161
|
+
interface TransactionPartnerChat {
|
|
2162
|
+
type: "chat";
|
|
2163
|
+
chat: Chat;
|
|
2164
|
+
gift?: Gift;
|
|
2165
|
+
}
|
|
2166
|
+
interface TransactionPartnerFragment {
|
|
2167
|
+
type: "fragment";
|
|
2168
|
+
withdrawal_state?: RevenueWithdrawalState;
|
|
2169
|
+
}
|
|
2170
|
+
interface TransactionPartnerOther {
|
|
2171
|
+
type: "other";
|
|
2172
|
+
}
|
|
2173
|
+
interface TransactionPartnerTelegramAds {
|
|
2174
|
+
type: "telegram_ads";
|
|
2175
|
+
}
|
|
2176
|
+
interface TransactionPartnerTelegramApi {
|
|
2177
|
+
type: "telegram_api";
|
|
2178
|
+
request_count: number;
|
|
2179
|
+
}
|
|
2180
|
+
interface TransactionPartnerUser {
|
|
2181
|
+
type: "user";
|
|
2182
|
+
transaction_type: "invoice_payment" | "paid_media_payment" | "gift_purchase" | "premium_purchase" | "business_account_transfer";
|
|
2183
|
+
user: User;
|
|
2184
|
+
affiliate?: AffiliateInfo;
|
|
2185
|
+
invoice_payload?: string;
|
|
2186
|
+
subscription_period?: number;
|
|
2187
|
+
paid_media?: PaidMedia[];
|
|
2188
|
+
paid_media_payload?: string;
|
|
2189
|
+
gift?: Gift;
|
|
2190
|
+
premium_subscription_duration?: number;
|
|
2191
|
+
}
|
|
2192
|
+
interface UniqueGift {
|
|
2193
|
+
base_name: string;
|
|
2194
|
+
name: string;
|
|
2195
|
+
number: number;
|
|
2196
|
+
model: UniqueGiftModel;
|
|
2197
|
+
symbol: UniqueGiftSymbol;
|
|
2198
|
+
backdrop: UniqueGiftBackdrop;
|
|
2199
|
+
publisher_chat?: Chat;
|
|
2200
|
+
}
|
|
2201
|
+
interface UniqueGiftBackdrop {
|
|
2202
|
+
name: string;
|
|
2203
|
+
colors: UniqueGiftBackdropColors;
|
|
2204
|
+
rarity_per_mille: number;
|
|
2205
|
+
}
|
|
2206
|
+
interface UniqueGiftBackdropColors {
|
|
2207
|
+
center_color: number;
|
|
2208
|
+
edge_color: number;
|
|
2209
|
+
symbol_color: number;
|
|
2210
|
+
text_color: number;
|
|
2211
|
+
}
|
|
2212
|
+
interface UniqueGiftInfo {
|
|
2213
|
+
gift: UniqueGift;
|
|
2214
|
+
origin: string;
|
|
2215
|
+
last_resale_star_count?: number;
|
|
2216
|
+
owned_gift_id?: string;
|
|
2217
|
+
transfer_star_count?: number;
|
|
2218
|
+
next_transfer_date?: number;
|
|
2219
|
+
}
|
|
2220
|
+
interface UniqueGiftModel {
|
|
2221
|
+
name: string;
|
|
2222
|
+
sticker: Sticker;
|
|
2223
|
+
rarity_per_mille: number;
|
|
2224
|
+
}
|
|
2225
|
+
interface UniqueGiftSymbol {
|
|
2226
|
+
name: string;
|
|
2227
|
+
sticker: Sticker;
|
|
2228
|
+
rarity_per_mille: number;
|
|
2229
|
+
}
|
|
2230
|
+
interface Update {
|
|
2231
|
+
update_id: number;
|
|
2232
|
+
message?: Message;
|
|
2233
|
+
edited_message?: Message;
|
|
2234
|
+
channel_post?: Message;
|
|
2235
|
+
edited_channel_post?: Message;
|
|
2236
|
+
business_connection?: BusinessConnection;
|
|
2237
|
+
business_message?: Message;
|
|
2238
|
+
edited_business_message?: Message;
|
|
2239
|
+
deleted_business_messages?: BusinessMessagesDeleted;
|
|
2240
|
+
message_reaction?: MessageReactionUpdated;
|
|
2241
|
+
message_reaction_count?: MessageReactionCountUpdated;
|
|
2242
|
+
inline_query?: InlineQuery;
|
|
2243
|
+
chosen_inline_result?: ChosenInlineResult;
|
|
2244
|
+
callback_query?: CallbackQuery;
|
|
2245
|
+
shipping_query?: ShippingQuery;
|
|
2246
|
+
pre_checkout_query?: PreCheckoutQuery;
|
|
2247
|
+
purchased_paid_media?: PaidMediaPurchased;
|
|
2248
|
+
poll?: Poll;
|
|
2249
|
+
poll_answer?: PollAnswer;
|
|
2250
|
+
my_chat_member?: ChatMemberUpdated;
|
|
2251
|
+
chat_member?: ChatMemberUpdated;
|
|
2252
|
+
chat_join_request?: ChatJoinRequest;
|
|
2253
|
+
chat_boost?: ChatBoostUpdated;
|
|
2254
|
+
removed_chat_boost?: ChatBoostRemoved;
|
|
2255
|
+
}
|
|
2256
|
+
interface User {
|
|
2257
|
+
id: number;
|
|
2258
|
+
is_bot: boolean;
|
|
2259
|
+
first_name: string;
|
|
2260
|
+
last_name?: string;
|
|
2261
|
+
username?: string;
|
|
2262
|
+
language_code?: string;
|
|
2263
|
+
is_premium?: boolean;
|
|
2264
|
+
added_to_attachment_menu?: boolean;
|
|
2265
|
+
can_join_groups?: boolean;
|
|
2266
|
+
can_read_all_group_messages?: boolean;
|
|
2267
|
+
supports_inline_queries?: boolean;
|
|
2268
|
+
can_connect_to_business?: boolean;
|
|
2269
|
+
has_main_web_app?: boolean;
|
|
2270
|
+
}
|
|
2271
|
+
interface UserChatBoosts {
|
|
2272
|
+
boosts: ChatBoost[];
|
|
2273
|
+
}
|
|
2274
|
+
interface UserProfilePhotos {
|
|
2275
|
+
total_count: number;
|
|
2276
|
+
photos: PhotoSize[][];
|
|
2277
|
+
}
|
|
2278
|
+
interface UsersShared {
|
|
2279
|
+
request_id: number;
|
|
2280
|
+
users: SharedUser[];
|
|
2281
|
+
}
|
|
2282
|
+
interface Venue {
|
|
2283
|
+
location: Location;
|
|
2284
|
+
title: string;
|
|
2285
|
+
address: string;
|
|
2286
|
+
foursquare_id?: string;
|
|
2287
|
+
foursquare_type?: string;
|
|
2288
|
+
google_place_id?: string;
|
|
2289
|
+
google_place_type?: string;
|
|
2290
|
+
}
|
|
2291
|
+
interface Video {
|
|
2292
|
+
file_id: string;
|
|
2293
|
+
file_unique_id: string;
|
|
2294
|
+
width: number;
|
|
2295
|
+
height: number;
|
|
2296
|
+
duration: number;
|
|
2297
|
+
thumbnail?: PhotoSize;
|
|
2298
|
+
cover?: PhotoSize[];
|
|
2299
|
+
start_timestamp?: number;
|
|
2300
|
+
file_name?: string;
|
|
2301
|
+
mime_type?: string;
|
|
2302
|
+
file_size?: number;
|
|
2303
|
+
}
|
|
2304
|
+
interface VideoChatEnded {
|
|
2305
|
+
duration: number;
|
|
2306
|
+
}
|
|
2307
|
+
interface VideoChatParticipantsInvited {
|
|
2308
|
+
users: User[];
|
|
2309
|
+
}
|
|
2310
|
+
interface VideoChatScheduled {
|
|
2311
|
+
start_date: number;
|
|
2312
|
+
}
|
|
2313
|
+
type VideoChatStarted = never;
|
|
2314
|
+
interface VideoNote {
|
|
2315
|
+
file_id: string;
|
|
2316
|
+
file_unique_id: string;
|
|
2317
|
+
length: number;
|
|
2318
|
+
duration: number;
|
|
2319
|
+
thumbnail?: PhotoSize;
|
|
2320
|
+
file_size?: number;
|
|
2321
|
+
}
|
|
2322
|
+
interface Voice {
|
|
2323
|
+
file_id: string;
|
|
2324
|
+
file_unique_id: string;
|
|
2325
|
+
duration: number;
|
|
2326
|
+
mime_type?: string;
|
|
2327
|
+
file_size?: number;
|
|
2328
|
+
}
|
|
2329
|
+
interface WebAppData {
|
|
2330
|
+
data: string;
|
|
2331
|
+
button_text: string;
|
|
2332
|
+
}
|
|
2333
|
+
interface WebAppInfo {
|
|
2334
|
+
url: string;
|
|
2335
|
+
}
|
|
2336
|
+
interface WebhookInfo {
|
|
2337
|
+
url: string;
|
|
2338
|
+
has_custom_certificate: boolean;
|
|
2339
|
+
pending_update_count: number;
|
|
2340
|
+
ip_address?: string;
|
|
2341
|
+
last_error_date?: number;
|
|
2342
|
+
last_error_message?: string;
|
|
2343
|
+
last_synchronization_error_date?: number;
|
|
2344
|
+
max_connections?: number;
|
|
2345
|
+
allowed_updates?: string[];
|
|
2346
|
+
}
|
|
2347
|
+
interface WriteAccessAllowed {
|
|
2348
|
+
from_request?: boolean;
|
|
2349
|
+
web_app_name?: string;
|
|
2350
|
+
from_attachment_menu?: boolean;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
interface Api {
|
|
2354
|
+
add_sticker_to_set(_: AddStickerToSetInput): boolean;
|
|
2355
|
+
answer_callback_query(_: AnswerCallbackQueryInput): boolean;
|
|
2356
|
+
answer_inline_query(_: AnswerInlineQueryInput): boolean;
|
|
2357
|
+
answer_pre_checkout_query(_: AnswerPreCheckoutQueryInput): boolean;
|
|
2358
|
+
answer_shipping_query(_: AnswerShippingQueryInput): boolean;
|
|
2359
|
+
answer_web_app_query(_: AnswerWebAppQueryInput): SentWebAppMessage;
|
|
2360
|
+
approve_chat_join_request(_: ApproveChatJoinRequestInput): boolean;
|
|
2361
|
+
approve_suggested_post(_: ApproveSuggestedPostInput): boolean;
|
|
2362
|
+
ban_chat_member(_: BanChatMemberInput): boolean;
|
|
2363
|
+
ban_chat_sender_chat(_: BanChatSenderChatInput): boolean;
|
|
2364
|
+
close(_: CloseInput): boolean;
|
|
2365
|
+
close_forum_topic(_: CloseForumTopicInput): boolean;
|
|
2366
|
+
close_general_forum_topic(_: CloseGeneralForumTopicInput): boolean;
|
|
2367
|
+
convert_gift_to_stars(_: ConvertGiftToStarsInput): boolean;
|
|
2368
|
+
copy_message(_: CopyMessageInput): MessageId;
|
|
2369
|
+
copy_messages(_: CopyMessagesInput): MessageId[];
|
|
2370
|
+
create_chat_invite_link(_: CreateChatInviteLinkInput): ChatInviteLink;
|
|
2371
|
+
create_chat_subscription_invite_link(_: CreateChatSubscriptionInviteLinkInput): ChatInviteLink;
|
|
2372
|
+
create_forum_topic(_: CreateForumTopicInput): ForumTopic;
|
|
2373
|
+
create_invoice_link(_: CreateInvoiceLinkInput): string;
|
|
2374
|
+
create_new_sticker_set(_: CreateNewStickerSetInput): boolean;
|
|
2375
|
+
decline_chat_join_request(_: DeclineChatJoinRequestInput): boolean;
|
|
2376
|
+
decline_suggested_post(_: DeclineSuggestedPostInput): boolean;
|
|
2377
|
+
delete_business_messages(_: DeleteBusinessMessagesInput): boolean;
|
|
2378
|
+
delete_chat_photo(_: DeleteChatPhotoInput): boolean;
|
|
2379
|
+
delete_chat_sticker_set(_: DeleteChatStickerSetInput): boolean;
|
|
2380
|
+
delete_forum_topic(_: DeleteForumTopicInput): boolean;
|
|
2381
|
+
delete_message(_: DeleteMessageInput): boolean;
|
|
2382
|
+
delete_messages(_: DeleteMessagesInput): boolean;
|
|
2383
|
+
delete_my_commands(_: DeleteMyCommandsInput): boolean;
|
|
2384
|
+
delete_sticker_from_set(_: DeleteStickerFromSetInput): boolean;
|
|
2385
|
+
delete_sticker_set(_: DeleteStickerSetInput): boolean;
|
|
2386
|
+
delete_story(_: DeleteStoryInput): boolean;
|
|
2387
|
+
delete_webhook(_: DeleteWebhookInput): boolean;
|
|
2388
|
+
edit_chat_invite_link(_: EditChatInviteLinkInput): ChatInviteLink;
|
|
2389
|
+
edit_chat_subscription_invite_link(_: EditChatSubscriptionInviteLinkInput): ChatInviteLink;
|
|
2390
|
+
edit_forum_topic(_: EditForumTopicInput): boolean;
|
|
2391
|
+
edit_general_forum_topic(_: EditGeneralForumTopicInput): boolean;
|
|
2392
|
+
edit_message_caption(_: EditMessageCaptionInput): Message | boolean;
|
|
2393
|
+
edit_message_checklist(_: EditMessageChecklistInput): Message;
|
|
2394
|
+
edit_message_live_location(_: EditMessageLiveLocationInput): Message | boolean;
|
|
2395
|
+
edit_message_media(_: EditMessageMediaInput): Message | boolean;
|
|
2396
|
+
edit_message_reply_markup(_: EditMessageReplyMarkupInput): Message | boolean;
|
|
2397
|
+
edit_message_text(_: EditMessageTextInput): Message | boolean;
|
|
2398
|
+
edit_story(_: EditStoryInput): Story;
|
|
2399
|
+
edit_user_star_subscription(_: EditUserStarSubscriptionInput): boolean;
|
|
2400
|
+
export_chat_invite_link(_: ExportChatInviteLinkInput): string;
|
|
2401
|
+
forward_message(_: ForwardMessageInput): Message;
|
|
2402
|
+
forward_messages(_: ForwardMessagesInput): MessageId[];
|
|
2403
|
+
get_available_gifts(_: GetAvailableGiftsInput): Gifts;
|
|
2404
|
+
get_business_account_gifts(_: GetBusinessAccountGiftsInput): OwnedGifts;
|
|
2405
|
+
get_business_account_star_balance(_: GetBusinessAccountStarBalanceInput): StarAmount;
|
|
2406
|
+
get_business_connection(_: GetBusinessConnectionInput): BusinessConnection;
|
|
2407
|
+
get_chat(_: GetChatInput): ChatFullInfo;
|
|
2408
|
+
get_chat_administrators(_: GetChatAdministratorsInput): ChatMember[];
|
|
2409
|
+
get_chat_member(_: GetChatMemberInput): ChatMember;
|
|
2410
|
+
get_chat_member_count(_: GetChatMemberCountInput): number;
|
|
2411
|
+
get_chat_menu_button(_: GetChatMenuButtonInput): MenuButton;
|
|
2412
|
+
get_custom_emoji_stickers(_: GetCustomEmojiStickersInput): Sticker[];
|
|
2413
|
+
get_file(_: GetFileInput): File;
|
|
2414
|
+
get_forum_topic_icon_stickers(_: GetForumTopicIconStickersInput): Sticker[];
|
|
2415
|
+
get_game_high_scores(_: GetGameHighScoresInput): GameHighScore[];
|
|
2416
|
+
get_me(_: GetMeInput): User;
|
|
2417
|
+
get_my_commands(_: GetMyCommandsInput): BotCommand[];
|
|
2418
|
+
get_my_default_administrator_rights(_: GetMyDefaultAdministratorRightsInput): ChatAdministratorRights;
|
|
2419
|
+
get_my_description(_: GetMyDescriptionInput): BotDescription;
|
|
2420
|
+
get_my_name(_: GetMyNameInput): BotName;
|
|
2421
|
+
get_my_short_description(_: GetMyShortDescriptionInput): BotShortDescription;
|
|
2422
|
+
get_my_star_balance(_: GetMyStarBalanceInput): StarAmount;
|
|
2423
|
+
get_star_transactions(_: GetStarTransactionsInput): StarTransactions;
|
|
2424
|
+
get_sticker_set(_: GetStickerSetInput): StickerSet;
|
|
2425
|
+
get_updates(_: GetUpdatesInput): Update[];
|
|
2426
|
+
get_user_chat_boosts(_: GetUserChatBoostsInput): UserChatBoosts;
|
|
2427
|
+
get_user_profile_photos(_: GetUserProfilePhotosInput): UserProfilePhotos;
|
|
2428
|
+
get_webhook_info(_: GetWebhookInfoInput): WebhookInfo;
|
|
2429
|
+
gift_premium_subscription(_: GiftPremiumSubscriptionInput): boolean;
|
|
2430
|
+
hide_general_forum_topic(_: HideGeneralForumTopicInput): boolean;
|
|
2431
|
+
leave_chat(_: LeaveChatInput): boolean;
|
|
2432
|
+
log_out(_: LogOutInput): boolean;
|
|
2433
|
+
pin_chat_message(_: PinChatMessageInput): boolean;
|
|
2434
|
+
post_story(_: PostStoryInput): Story;
|
|
2435
|
+
promote_chat_member(_: PromoteChatMemberInput): boolean;
|
|
2436
|
+
read_business_message(_: ReadBusinessMessageInput): boolean;
|
|
2437
|
+
refund_star_payment(_: RefundStarPaymentInput): boolean;
|
|
2438
|
+
remove_business_account_profile_photo(_: RemoveBusinessAccountProfilePhotoInput): boolean;
|
|
2439
|
+
remove_chat_verification(_: RemoveChatVerificationInput): boolean;
|
|
2440
|
+
remove_user_verification(_: RemoveUserVerificationInput): boolean;
|
|
2441
|
+
reopen_forum_topic(_: ReopenForumTopicInput): boolean;
|
|
2442
|
+
reopen_general_forum_topic(_: ReopenGeneralForumTopicInput): boolean;
|
|
2443
|
+
replace_sticker_in_set(_: ReplaceStickerInSetInput): boolean;
|
|
2444
|
+
restrict_chat_member(_: RestrictChatMemberInput): boolean;
|
|
2445
|
+
revoke_chat_invite_link(_: RevokeChatInviteLinkInput): ChatInviteLink;
|
|
2446
|
+
save_prepared_inline_message(_: SavePreparedInlineMessageInput): PreparedInlineMessage;
|
|
2447
|
+
send_animation(_: SendAnimationInput): Message;
|
|
2448
|
+
send_audio(_: SendAudioInput): Message;
|
|
2449
|
+
send_chat_action(_: SendChatActionInput): boolean;
|
|
2450
|
+
send_checklist(_: SendChecklistInput): Message;
|
|
2451
|
+
send_contact(_: SendContactInput): Message;
|
|
2452
|
+
send_dice(_: SendDiceInput): Message;
|
|
2453
|
+
send_document(_: SendDocumentInput): Message;
|
|
2454
|
+
send_game(_: SendGameInput): Message;
|
|
2455
|
+
send_gift(_: SendGiftInput): boolean;
|
|
2456
|
+
send_invoice(_: SendInvoiceInput): Message;
|
|
2457
|
+
send_location(_: SendLocationInput): Message;
|
|
2458
|
+
send_media_group(_: SendMediaGroupInput): Message[];
|
|
2459
|
+
send_message(_: SendMessageInput): Message;
|
|
2460
|
+
send_paid_media(_: SendPaidMediaInput): Message;
|
|
2461
|
+
send_photo(_: SendPhotoInput): Message;
|
|
2462
|
+
send_poll(_: SendPollInput): Message;
|
|
2463
|
+
send_sticker(_: SendStickerInput): Message;
|
|
2464
|
+
send_venue(_: SendVenueInput): Message;
|
|
2465
|
+
send_video(_: SendVideoInput): Message;
|
|
2466
|
+
send_video_note(_: SendVideoNoteInput): Message;
|
|
2467
|
+
send_voice(_: SendVoiceInput): Message;
|
|
2468
|
+
set_business_account_bio(_: SetBusinessAccountBioInput): boolean;
|
|
2469
|
+
set_business_account_gift_settings(_: SetBusinessAccountGiftSettingsInput): boolean;
|
|
2470
|
+
set_business_account_name(_: SetBusinessAccountNameInput): boolean;
|
|
2471
|
+
set_business_account_profile_photo(_: SetBusinessAccountProfilePhotoInput): boolean;
|
|
2472
|
+
set_business_account_username(_: SetBusinessAccountUsernameInput): boolean;
|
|
2473
|
+
set_chat_administrator_custom_title(_: SetChatAdministratorCustomTitleInput): boolean;
|
|
2474
|
+
set_chat_description(_: SetChatDescriptionInput): boolean;
|
|
2475
|
+
set_chat_menu_button(_: SetChatMenuButtonInput): boolean;
|
|
2476
|
+
set_chat_permissions(_: SetChatPermissionsInput): boolean;
|
|
2477
|
+
set_chat_photo(_: SetChatPhotoInput): boolean;
|
|
2478
|
+
set_chat_sticker_set(_: SetChatStickerSetInput): boolean;
|
|
2479
|
+
set_chat_title(_: SetChatTitleInput): boolean;
|
|
2480
|
+
set_custom_emoji_sticker_set_thumbnail(_: SetCustomEmojiStickerSetThumbnailInput): boolean;
|
|
2481
|
+
set_game_score(_: SetGameScoreInput): Message | boolean;
|
|
2482
|
+
set_message_reaction(_: SetMessageReactionInput): boolean;
|
|
2483
|
+
set_my_commands(_: SetMyCommandsInput): boolean;
|
|
2484
|
+
set_my_default_administrator_rights(_: SetMyDefaultAdministratorRightsInput): boolean;
|
|
2485
|
+
set_my_description(_: SetMyDescriptionInput): boolean;
|
|
2486
|
+
set_my_name(_: SetMyNameInput): boolean;
|
|
2487
|
+
set_my_short_description(_: SetMyShortDescriptionInput): boolean;
|
|
2488
|
+
set_passport_data_errors(_: SetPassportDataErrorsInput): boolean;
|
|
2489
|
+
set_sticker_emoji_list(_: SetStickerEmojiListInput): boolean;
|
|
2490
|
+
set_sticker_keywords(_: SetStickerKeywordsInput): boolean;
|
|
2491
|
+
set_sticker_mask_position(_: SetStickerMaskPositionInput): boolean;
|
|
2492
|
+
set_sticker_position_in_set(_: SetStickerPositionInSetInput): boolean;
|
|
2493
|
+
set_sticker_set_thumbnail(_: SetStickerSetThumbnailInput): boolean;
|
|
2494
|
+
set_sticker_set_title(_: SetStickerSetTitleInput): boolean;
|
|
2495
|
+
set_user_emoji_status(_: SetUserEmojiStatusInput): boolean;
|
|
2496
|
+
set_webhook(_: SetWebhookInput): boolean;
|
|
2497
|
+
stop_message_live_location(_: StopMessageLiveLocationInput): Message | boolean;
|
|
2498
|
+
stop_poll(_: StopPollInput): Poll;
|
|
2499
|
+
transfer_business_account_stars(_: TransferBusinessAccountStarsInput): boolean;
|
|
2500
|
+
transfer_gift(_: TransferGiftInput): boolean;
|
|
2501
|
+
unban_chat_member(_: UnbanChatMemberInput): boolean;
|
|
2502
|
+
unban_chat_sender_chat(_: UnbanChatSenderChatInput): boolean;
|
|
2503
|
+
unhide_general_forum_topic(_: UnhideGeneralForumTopicInput): boolean;
|
|
2504
|
+
unpin_all_chat_messages(_: UnpinAllChatMessagesInput): boolean;
|
|
2505
|
+
unpin_all_forum_topic_messages(_: UnpinAllForumTopicMessagesInput): boolean;
|
|
2506
|
+
unpin_all_general_forum_topic_messages(_: UnpinAllGeneralForumTopicMessagesInput): boolean;
|
|
2507
|
+
unpin_chat_message(_: UnpinChatMessageInput): boolean;
|
|
2508
|
+
upgrade_gift(_: UpgradeGiftInput): boolean;
|
|
2509
|
+
upload_sticker_file(_: UploadStickerFileInput): File;
|
|
2510
|
+
verify_chat(_: VerifyChatInput): boolean;
|
|
2511
|
+
verify_user(_: VerifyUserInput): boolean;
|
|
2512
|
+
}
|
|
2513
|
+
interface AddStickerToSetInput {
|
|
2514
|
+
user_id: number;
|
|
2515
|
+
name: string;
|
|
2516
|
+
sticker: InputSticker;
|
|
2517
|
+
}
|
|
2518
|
+
interface AnswerCallbackQueryInput {
|
|
2519
|
+
callback_query_id: string;
|
|
2520
|
+
text?: string;
|
|
2521
|
+
show_alert?: boolean;
|
|
2522
|
+
url?: string;
|
|
2523
|
+
cache_time?: number;
|
|
2524
|
+
}
|
|
2525
|
+
interface AnswerInlineQueryInput {
|
|
2526
|
+
inline_query_id: string;
|
|
2527
|
+
results: InlineQueryResult[];
|
|
2528
|
+
cache_time?: number;
|
|
2529
|
+
is_personal?: boolean;
|
|
2530
|
+
next_offset?: string;
|
|
2531
|
+
button?: InlineQueryResultsButton;
|
|
2532
|
+
}
|
|
2533
|
+
interface AnswerPreCheckoutQueryInput {
|
|
2534
|
+
pre_checkout_query_id: string;
|
|
2535
|
+
ok: boolean;
|
|
2536
|
+
error_message?: string;
|
|
2537
|
+
}
|
|
2538
|
+
interface AnswerShippingQueryInput {
|
|
2539
|
+
shipping_query_id: string;
|
|
2540
|
+
ok: boolean;
|
|
2541
|
+
shipping_options?: ShippingOption[];
|
|
2542
|
+
error_message?: string;
|
|
2543
|
+
}
|
|
2544
|
+
interface AnswerWebAppQueryInput {
|
|
2545
|
+
web_app_query_id: string;
|
|
2546
|
+
result: InlineQueryResult;
|
|
2547
|
+
}
|
|
2548
|
+
interface ApproveChatJoinRequestInput {
|
|
2549
|
+
chat_id: number | string;
|
|
2550
|
+
user_id: number;
|
|
2551
|
+
}
|
|
2552
|
+
interface ApproveSuggestedPostInput {
|
|
2553
|
+
chat_id: number;
|
|
2554
|
+
message_id: number;
|
|
2555
|
+
send_date?: number;
|
|
2556
|
+
}
|
|
2557
|
+
interface BanChatMemberInput {
|
|
2558
|
+
chat_id: number | string;
|
|
2559
|
+
user_id: number;
|
|
2560
|
+
until_date?: number;
|
|
2561
|
+
revoke_messages?: boolean;
|
|
2562
|
+
}
|
|
2563
|
+
interface BanChatSenderChatInput {
|
|
2564
|
+
chat_id: number | string;
|
|
2565
|
+
sender_chat_id: number;
|
|
2566
|
+
}
|
|
2567
|
+
interface CloseInput {
|
|
2568
|
+
}
|
|
2569
|
+
interface CloseForumTopicInput {
|
|
2570
|
+
chat_id: number | string;
|
|
2571
|
+
message_thread_id: number;
|
|
2572
|
+
}
|
|
2573
|
+
interface CloseGeneralForumTopicInput {
|
|
2574
|
+
chat_id: number | string;
|
|
2575
|
+
}
|
|
2576
|
+
interface ConvertGiftToStarsInput {
|
|
2577
|
+
business_connection_id: string;
|
|
2578
|
+
owned_gift_id: string;
|
|
2579
|
+
}
|
|
2580
|
+
interface CopyMessageInput {
|
|
2581
|
+
chat_id: number | string;
|
|
2582
|
+
from_chat_id: number | string;
|
|
2583
|
+
message_id: number;
|
|
2584
|
+
message_thread_id?: number;
|
|
2585
|
+
direct_messages_topic_id?: number;
|
|
2586
|
+
video_start_timestamp?: number;
|
|
2587
|
+
caption?: string;
|
|
2588
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2589
|
+
caption_entities?: MessageEntity[];
|
|
2590
|
+
show_caption_above_media?: boolean;
|
|
2591
|
+
disable_notification?: boolean;
|
|
2592
|
+
protect_content?: boolean;
|
|
2593
|
+
allow_paid_broadcast?: boolean;
|
|
2594
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
2595
|
+
reply_parameters?: ReplyParameters;
|
|
2596
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2597
|
+
}
|
|
2598
|
+
interface CopyMessagesInput {
|
|
2599
|
+
chat_id: number | string;
|
|
2600
|
+
from_chat_id: number | string;
|
|
2601
|
+
message_ids: number[];
|
|
2602
|
+
message_thread_id?: number;
|
|
2603
|
+
direct_messages_topic_id?: number;
|
|
2604
|
+
disable_notification?: boolean;
|
|
2605
|
+
protect_content?: boolean;
|
|
2606
|
+
remove_caption?: boolean;
|
|
2607
|
+
}
|
|
2608
|
+
interface CreateChatInviteLinkInput {
|
|
2609
|
+
chat_id: number | string;
|
|
2610
|
+
name?: string;
|
|
2611
|
+
expire_date?: number;
|
|
2612
|
+
member_limit?: number;
|
|
2613
|
+
creates_join_request?: boolean;
|
|
2614
|
+
}
|
|
2615
|
+
interface CreateChatSubscriptionInviteLinkInput {
|
|
2616
|
+
chat_id: number | string;
|
|
2617
|
+
subscription_period: number;
|
|
2618
|
+
subscription_price: number;
|
|
2619
|
+
name?: string;
|
|
2620
|
+
}
|
|
2621
|
+
interface CreateForumTopicInput {
|
|
2622
|
+
chat_id: number | string;
|
|
2623
|
+
name: string;
|
|
2624
|
+
icon_color?: number;
|
|
2625
|
+
icon_custom_emoji_id?: string;
|
|
2626
|
+
}
|
|
2627
|
+
interface CreateInvoiceLinkInput {
|
|
2628
|
+
title: string;
|
|
2629
|
+
description: string;
|
|
2630
|
+
payload: string;
|
|
2631
|
+
currency: string;
|
|
2632
|
+
prices: LabeledPrice[];
|
|
2633
|
+
business_connection_id?: string;
|
|
2634
|
+
provider_token?: string;
|
|
2635
|
+
subscription_period?: number;
|
|
2636
|
+
max_tip_amount?: number;
|
|
2637
|
+
suggested_tip_amounts?: number[];
|
|
2638
|
+
provider_data?: string;
|
|
2639
|
+
photo_url?: string;
|
|
2640
|
+
photo_size?: number;
|
|
2641
|
+
photo_width?: number;
|
|
2642
|
+
photo_height?: number;
|
|
2643
|
+
need_name?: boolean;
|
|
2644
|
+
need_phone_number?: boolean;
|
|
2645
|
+
need_email?: boolean;
|
|
2646
|
+
need_shipping_address?: boolean;
|
|
2647
|
+
send_phone_number_to_provider?: boolean;
|
|
2648
|
+
send_email_to_provider?: boolean;
|
|
2649
|
+
is_flexible?: boolean;
|
|
2650
|
+
}
|
|
2651
|
+
interface CreateNewStickerSetInput {
|
|
2652
|
+
user_id: number;
|
|
2653
|
+
name: string;
|
|
2654
|
+
title: string;
|
|
2655
|
+
stickers: InputSticker[];
|
|
2656
|
+
sticker_type?: string;
|
|
2657
|
+
needs_repainting?: boolean;
|
|
2658
|
+
}
|
|
2659
|
+
interface DeclineChatJoinRequestInput {
|
|
2660
|
+
chat_id: number | string;
|
|
2661
|
+
user_id: number;
|
|
2662
|
+
}
|
|
2663
|
+
interface DeclineSuggestedPostInput {
|
|
2664
|
+
chat_id: number;
|
|
2665
|
+
message_id: number;
|
|
2666
|
+
comment?: string;
|
|
2667
|
+
}
|
|
2668
|
+
interface DeleteBusinessMessagesInput {
|
|
2669
|
+
business_connection_id: string;
|
|
2670
|
+
message_ids: number[];
|
|
2671
|
+
}
|
|
2672
|
+
interface DeleteChatPhotoInput {
|
|
2673
|
+
chat_id: number | string;
|
|
2674
|
+
}
|
|
2675
|
+
interface DeleteChatStickerSetInput {
|
|
2676
|
+
chat_id: number | string;
|
|
2677
|
+
}
|
|
2678
|
+
interface DeleteForumTopicInput {
|
|
2679
|
+
chat_id: number | string;
|
|
2680
|
+
message_thread_id: number;
|
|
2681
|
+
}
|
|
2682
|
+
interface DeleteMessageInput {
|
|
2683
|
+
chat_id: number | string;
|
|
2684
|
+
message_id: number;
|
|
2685
|
+
}
|
|
2686
|
+
interface DeleteMessagesInput {
|
|
2687
|
+
chat_id: number | string;
|
|
2688
|
+
message_ids: number[];
|
|
2689
|
+
}
|
|
2690
|
+
interface DeleteMyCommandsInput {
|
|
2691
|
+
scope?: BotCommandScope;
|
|
2692
|
+
language_code?: string;
|
|
2693
|
+
}
|
|
2694
|
+
interface DeleteStickerFromSetInput {
|
|
2695
|
+
sticker: string;
|
|
2696
|
+
}
|
|
2697
|
+
interface DeleteStickerSetInput {
|
|
2698
|
+
name: string;
|
|
2699
|
+
}
|
|
2700
|
+
interface DeleteStoryInput {
|
|
2701
|
+
business_connection_id: string;
|
|
2702
|
+
story_id: number;
|
|
2703
|
+
}
|
|
2704
|
+
interface DeleteWebhookInput {
|
|
2705
|
+
drop_pending_updates?: boolean;
|
|
2706
|
+
}
|
|
2707
|
+
interface EditChatInviteLinkInput {
|
|
2708
|
+
chat_id: number | string;
|
|
2709
|
+
invite_link: string;
|
|
2710
|
+
name?: string;
|
|
2711
|
+
expire_date?: number;
|
|
2712
|
+
member_limit?: number;
|
|
2713
|
+
creates_join_request?: boolean;
|
|
2714
|
+
}
|
|
2715
|
+
interface EditChatSubscriptionInviteLinkInput {
|
|
2716
|
+
chat_id: number | string;
|
|
2717
|
+
invite_link: string;
|
|
2718
|
+
name?: string;
|
|
2719
|
+
}
|
|
2720
|
+
interface EditForumTopicInput {
|
|
2721
|
+
chat_id: number | string;
|
|
2722
|
+
message_thread_id: number;
|
|
2723
|
+
name?: string;
|
|
2724
|
+
icon_custom_emoji_id?: string;
|
|
2725
|
+
}
|
|
2726
|
+
interface EditGeneralForumTopicInput {
|
|
2727
|
+
chat_id: number | string;
|
|
2728
|
+
name: string;
|
|
2729
|
+
}
|
|
2730
|
+
interface EditMessageCaptionInput {
|
|
2731
|
+
business_connection_id?: string;
|
|
2732
|
+
chat_id?: number | string;
|
|
2733
|
+
message_id?: number;
|
|
2734
|
+
inline_message_id?: string;
|
|
2735
|
+
caption?: string;
|
|
2736
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2737
|
+
caption_entities?: MessageEntity[];
|
|
2738
|
+
show_caption_above_media?: boolean;
|
|
2739
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2740
|
+
}
|
|
2741
|
+
interface EditMessageChecklistInput {
|
|
2742
|
+
business_connection_id: string;
|
|
2743
|
+
chat_id: number;
|
|
2744
|
+
message_id: number;
|
|
2745
|
+
checklist: InputChecklist;
|
|
2746
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2747
|
+
}
|
|
2748
|
+
interface EditMessageLiveLocationInput {
|
|
2749
|
+
latitude: number;
|
|
2750
|
+
longitude: number;
|
|
2751
|
+
business_connection_id?: string;
|
|
2752
|
+
chat_id?: number | string;
|
|
2753
|
+
message_id?: number;
|
|
2754
|
+
inline_message_id?: string;
|
|
2755
|
+
live_period?: number;
|
|
2756
|
+
horizontal_accuracy?: number;
|
|
2757
|
+
heading?: number;
|
|
2758
|
+
proximity_alert_radius?: number;
|
|
2759
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2760
|
+
}
|
|
2761
|
+
interface EditMessageMediaInput {
|
|
2762
|
+
media: InputMedia;
|
|
2763
|
+
business_connection_id?: string;
|
|
2764
|
+
chat_id?: number | string;
|
|
2765
|
+
message_id?: number;
|
|
2766
|
+
inline_message_id?: string;
|
|
2767
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2768
|
+
}
|
|
2769
|
+
interface EditMessageReplyMarkupInput {
|
|
2770
|
+
business_connection_id?: string;
|
|
2771
|
+
chat_id?: number | string;
|
|
2772
|
+
message_id?: number;
|
|
2773
|
+
inline_message_id?: string;
|
|
2774
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2775
|
+
}
|
|
2776
|
+
interface EditMessageTextInput {
|
|
2777
|
+
text: string;
|
|
2778
|
+
business_connection_id?: string;
|
|
2779
|
+
chat_id?: number | string;
|
|
2780
|
+
message_id?: number;
|
|
2781
|
+
inline_message_id?: string;
|
|
2782
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2783
|
+
entities?: MessageEntity[];
|
|
2784
|
+
link_preview_options?: LinkPreviewOptions;
|
|
2785
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
2786
|
+
}
|
|
2787
|
+
interface EditStoryInput {
|
|
2788
|
+
business_connection_id: string;
|
|
2789
|
+
story_id: number;
|
|
2790
|
+
content: InputStoryContent;
|
|
2791
|
+
caption?: string;
|
|
2792
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2793
|
+
caption_entities?: MessageEntity[];
|
|
2794
|
+
areas?: StoryArea[];
|
|
2795
|
+
}
|
|
2796
|
+
interface EditUserStarSubscriptionInput {
|
|
2797
|
+
user_id: number;
|
|
2798
|
+
telegram_payment_charge_id: string;
|
|
2799
|
+
is_canceled: boolean;
|
|
2800
|
+
}
|
|
2801
|
+
interface ExportChatInviteLinkInput {
|
|
2802
|
+
chat_id: number | string;
|
|
2803
|
+
}
|
|
2804
|
+
interface ForwardMessageInput {
|
|
2805
|
+
chat_id: number | string;
|
|
2806
|
+
from_chat_id: number | string;
|
|
2807
|
+
message_id: number;
|
|
2808
|
+
message_thread_id?: number;
|
|
2809
|
+
direct_messages_topic_id?: number;
|
|
2810
|
+
video_start_timestamp?: number;
|
|
2811
|
+
disable_notification?: boolean;
|
|
2812
|
+
protect_content?: boolean;
|
|
2813
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
2814
|
+
}
|
|
2815
|
+
interface ForwardMessagesInput {
|
|
2816
|
+
chat_id: number | string;
|
|
2817
|
+
from_chat_id: number | string;
|
|
2818
|
+
message_ids: number[];
|
|
2819
|
+
message_thread_id?: number;
|
|
2820
|
+
direct_messages_topic_id?: number;
|
|
2821
|
+
disable_notification?: boolean;
|
|
2822
|
+
protect_content?: boolean;
|
|
2823
|
+
}
|
|
2824
|
+
interface GetAvailableGiftsInput {
|
|
2825
|
+
}
|
|
2826
|
+
interface GetBusinessAccountGiftsInput {
|
|
2827
|
+
business_connection_id: string;
|
|
2828
|
+
exclude_unsaved?: boolean;
|
|
2829
|
+
exclude_saved?: boolean;
|
|
2830
|
+
exclude_unlimited?: boolean;
|
|
2831
|
+
exclude_limited?: boolean;
|
|
2832
|
+
exclude_unique?: boolean;
|
|
2833
|
+
sort_by_price?: boolean;
|
|
2834
|
+
offset?: string;
|
|
2835
|
+
limit?: number;
|
|
2836
|
+
}
|
|
2837
|
+
interface GetBusinessAccountStarBalanceInput {
|
|
2838
|
+
business_connection_id: string;
|
|
2839
|
+
}
|
|
2840
|
+
interface GetBusinessConnectionInput {
|
|
2841
|
+
business_connection_id: string;
|
|
2842
|
+
}
|
|
2843
|
+
interface GetChatInput {
|
|
2844
|
+
chat_id: number | string;
|
|
2845
|
+
}
|
|
2846
|
+
interface GetChatAdministratorsInput {
|
|
2847
|
+
chat_id: number | string;
|
|
2848
|
+
}
|
|
2849
|
+
interface GetChatMemberInput {
|
|
2850
|
+
chat_id: number | string;
|
|
2851
|
+
user_id: number;
|
|
2852
|
+
}
|
|
2853
|
+
interface GetChatMemberCountInput {
|
|
2854
|
+
chat_id: number | string;
|
|
2855
|
+
}
|
|
2856
|
+
interface GetChatMenuButtonInput {
|
|
2857
|
+
chat_id?: number;
|
|
2858
|
+
}
|
|
2859
|
+
interface GetCustomEmojiStickersInput {
|
|
2860
|
+
custom_emoji_ids: string[];
|
|
2861
|
+
}
|
|
2862
|
+
interface GetFileInput {
|
|
2863
|
+
file_id: string;
|
|
2864
|
+
}
|
|
2865
|
+
interface GetForumTopicIconStickersInput {
|
|
2866
|
+
}
|
|
2867
|
+
interface GetGameHighScoresInput {
|
|
2868
|
+
user_id: number;
|
|
2869
|
+
chat_id?: number;
|
|
2870
|
+
message_id?: number;
|
|
2871
|
+
inline_message_id?: string;
|
|
2872
|
+
}
|
|
2873
|
+
interface GetMeInput {
|
|
2874
|
+
}
|
|
2875
|
+
interface GetMyCommandsInput {
|
|
2876
|
+
scope?: BotCommandScope;
|
|
2877
|
+
language_code?: string;
|
|
2878
|
+
}
|
|
2879
|
+
interface GetMyDefaultAdministratorRightsInput {
|
|
2880
|
+
for_channels?: boolean;
|
|
2881
|
+
}
|
|
2882
|
+
interface GetMyDescriptionInput {
|
|
2883
|
+
language_code?: string;
|
|
2884
|
+
}
|
|
2885
|
+
interface GetMyNameInput {
|
|
2886
|
+
language_code?: string;
|
|
2887
|
+
}
|
|
2888
|
+
interface GetMyShortDescriptionInput {
|
|
2889
|
+
language_code?: string;
|
|
2890
|
+
}
|
|
2891
|
+
interface GetMyStarBalanceInput {
|
|
2892
|
+
}
|
|
2893
|
+
interface GetStarTransactionsInput {
|
|
2894
|
+
offset?: number;
|
|
2895
|
+
limit?: number;
|
|
2896
|
+
}
|
|
2897
|
+
interface GetStickerSetInput {
|
|
2898
|
+
name: string;
|
|
2899
|
+
}
|
|
2900
|
+
interface GetUpdatesInput {
|
|
2901
|
+
offset?: number;
|
|
2902
|
+
limit?: number;
|
|
2903
|
+
timeout?: number;
|
|
2904
|
+
allowed_updates?: AllowedUpdateName[];
|
|
2905
|
+
}
|
|
2906
|
+
interface GetUserChatBoostsInput {
|
|
2907
|
+
chat_id: number | string;
|
|
2908
|
+
user_id: number;
|
|
2909
|
+
}
|
|
2910
|
+
interface GetUserProfilePhotosInput {
|
|
2911
|
+
user_id: number;
|
|
2912
|
+
offset?: number;
|
|
2913
|
+
limit?: number;
|
|
2914
|
+
}
|
|
2915
|
+
interface GetWebhookInfoInput {
|
|
2916
|
+
}
|
|
2917
|
+
interface GiftPremiumSubscriptionInput {
|
|
2918
|
+
user_id: number;
|
|
2919
|
+
month_count: number;
|
|
2920
|
+
star_count: number;
|
|
2921
|
+
text?: string;
|
|
2922
|
+
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
2923
|
+
text_entities?: MessageEntity[];
|
|
2924
|
+
}
|
|
2925
|
+
interface HideGeneralForumTopicInput {
|
|
2926
|
+
chat_id: number | string;
|
|
2927
|
+
}
|
|
2928
|
+
interface LeaveChatInput {
|
|
2929
|
+
chat_id: number | string;
|
|
2930
|
+
}
|
|
2931
|
+
interface LogOutInput {
|
|
2932
|
+
}
|
|
2933
|
+
interface PinChatMessageInput {
|
|
2934
|
+
chat_id: number | string;
|
|
2935
|
+
message_id: number;
|
|
2936
|
+
business_connection_id?: string;
|
|
2937
|
+
disable_notification?: boolean;
|
|
2938
|
+
}
|
|
2939
|
+
interface PostStoryInput {
|
|
2940
|
+
business_connection_id: string;
|
|
2941
|
+
content: InputStoryContent;
|
|
2942
|
+
active_period: number;
|
|
2943
|
+
caption?: string;
|
|
2944
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
2945
|
+
caption_entities?: MessageEntity[];
|
|
2946
|
+
areas?: StoryArea[];
|
|
2947
|
+
post_to_chat_page?: boolean;
|
|
2948
|
+
protect_content?: boolean;
|
|
2949
|
+
}
|
|
2950
|
+
interface PromoteChatMemberInput {
|
|
2951
|
+
chat_id: number | string;
|
|
2952
|
+
user_id: number;
|
|
2953
|
+
is_anonymous?: boolean;
|
|
2954
|
+
can_manage_chat?: boolean;
|
|
2955
|
+
can_delete_messages?: boolean;
|
|
2956
|
+
can_manage_video_chats?: boolean;
|
|
2957
|
+
can_restrict_members?: boolean;
|
|
2958
|
+
can_promote_members?: boolean;
|
|
2959
|
+
can_change_info?: boolean;
|
|
2960
|
+
can_invite_users?: boolean;
|
|
2961
|
+
can_post_stories?: boolean;
|
|
2962
|
+
can_edit_stories?: boolean;
|
|
2963
|
+
can_delete_stories?: boolean;
|
|
2964
|
+
can_post_messages?: boolean;
|
|
2965
|
+
can_edit_messages?: boolean;
|
|
2966
|
+
can_pin_messages?: boolean;
|
|
2967
|
+
can_manage_topics?: boolean;
|
|
2968
|
+
can_manage_direct_messages?: boolean;
|
|
2969
|
+
}
|
|
2970
|
+
interface ReadBusinessMessageInput {
|
|
2971
|
+
business_connection_id: string;
|
|
2972
|
+
chat_id: number;
|
|
2973
|
+
message_id: number;
|
|
2974
|
+
}
|
|
2975
|
+
interface RefundStarPaymentInput {
|
|
2976
|
+
user_id: number;
|
|
2977
|
+
telegram_payment_charge_id: string;
|
|
2978
|
+
}
|
|
2979
|
+
interface RemoveBusinessAccountProfilePhotoInput {
|
|
2980
|
+
business_connection_id: string;
|
|
2981
|
+
is_public?: boolean;
|
|
2982
|
+
}
|
|
2983
|
+
interface RemoveChatVerificationInput {
|
|
2984
|
+
chat_id: number | string;
|
|
2985
|
+
}
|
|
2986
|
+
interface RemoveUserVerificationInput {
|
|
2987
|
+
user_id: number;
|
|
2988
|
+
}
|
|
2989
|
+
interface ReopenForumTopicInput {
|
|
2990
|
+
chat_id: number | string;
|
|
2991
|
+
message_thread_id: number;
|
|
2992
|
+
}
|
|
2993
|
+
interface ReopenGeneralForumTopicInput {
|
|
2994
|
+
chat_id: number | string;
|
|
2995
|
+
}
|
|
2996
|
+
interface ReplaceStickerInSetInput {
|
|
2997
|
+
user_id: number;
|
|
2998
|
+
name: string;
|
|
2999
|
+
old_sticker: string;
|
|
3000
|
+
sticker: InputSticker;
|
|
3001
|
+
}
|
|
3002
|
+
interface RestrictChatMemberInput {
|
|
3003
|
+
chat_id: number | string;
|
|
3004
|
+
user_id: number;
|
|
3005
|
+
permissions: ChatPermissions;
|
|
3006
|
+
use_independent_chat_permissions?: boolean;
|
|
3007
|
+
until_date?: number;
|
|
3008
|
+
}
|
|
3009
|
+
interface RevokeChatInviteLinkInput {
|
|
3010
|
+
chat_id: number | string;
|
|
3011
|
+
invite_link: string;
|
|
3012
|
+
}
|
|
3013
|
+
interface SavePreparedInlineMessageInput {
|
|
3014
|
+
user_id: number;
|
|
3015
|
+
result: InlineQueryResult;
|
|
3016
|
+
allow_user_chats?: boolean;
|
|
3017
|
+
allow_bot_chats?: boolean;
|
|
3018
|
+
allow_group_chats?: boolean;
|
|
3019
|
+
allow_channel_chats?: boolean;
|
|
3020
|
+
}
|
|
3021
|
+
interface SendAnimationInput {
|
|
3022
|
+
chat_id: number | string;
|
|
3023
|
+
animation: InputFile | string;
|
|
3024
|
+
business_connection_id?: string;
|
|
3025
|
+
message_thread_id?: number;
|
|
3026
|
+
direct_messages_topic_id?: number;
|
|
3027
|
+
duration?: number;
|
|
3028
|
+
width?: number;
|
|
3029
|
+
height?: number;
|
|
3030
|
+
thumbnail?: InputFile | string;
|
|
3031
|
+
caption?: string;
|
|
3032
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3033
|
+
caption_entities?: MessageEntity[];
|
|
3034
|
+
show_caption_above_media?: boolean;
|
|
3035
|
+
has_spoiler?: boolean;
|
|
3036
|
+
disable_notification?: boolean;
|
|
3037
|
+
protect_content?: boolean;
|
|
3038
|
+
allow_paid_broadcast?: boolean;
|
|
3039
|
+
message_effect_id?: string;
|
|
3040
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3041
|
+
reply_parameters?: ReplyParameters;
|
|
3042
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3043
|
+
}
|
|
3044
|
+
interface SendAudioInput {
|
|
3045
|
+
chat_id: number | string;
|
|
3046
|
+
audio: InputFile | string;
|
|
3047
|
+
business_connection_id?: string;
|
|
3048
|
+
message_thread_id?: number;
|
|
3049
|
+
direct_messages_topic_id?: number;
|
|
3050
|
+
caption?: string;
|
|
3051
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3052
|
+
caption_entities?: MessageEntity[];
|
|
3053
|
+
duration?: number;
|
|
3054
|
+
performer?: string;
|
|
3055
|
+
title?: string;
|
|
3056
|
+
thumbnail?: InputFile | string;
|
|
3057
|
+
disable_notification?: boolean;
|
|
3058
|
+
protect_content?: boolean;
|
|
3059
|
+
allow_paid_broadcast?: boolean;
|
|
3060
|
+
message_effect_id?: string;
|
|
3061
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3062
|
+
reply_parameters?: ReplyParameters;
|
|
3063
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3064
|
+
}
|
|
3065
|
+
interface SendChatActionInput {
|
|
3066
|
+
chat_id: number | string;
|
|
3067
|
+
action: "typing" | "upload_photo" | "record_video" | "upload_video" | "record_voice" | "upload_voice" | "upload_document" | "choose_sticker" | "find_location" | "record_video_note" | "upload_video_note";
|
|
3068
|
+
business_connection_id?: string;
|
|
3069
|
+
message_thread_id?: number;
|
|
3070
|
+
}
|
|
3071
|
+
interface SendChecklistInput {
|
|
3072
|
+
business_connection_id: string;
|
|
3073
|
+
chat_id: number;
|
|
3074
|
+
checklist: InputChecklist;
|
|
3075
|
+
disable_notification?: boolean;
|
|
3076
|
+
protect_content?: boolean;
|
|
3077
|
+
message_effect_id?: string;
|
|
3078
|
+
reply_parameters?: ReplyParameters;
|
|
3079
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
3080
|
+
}
|
|
3081
|
+
interface SendContactInput {
|
|
3082
|
+
chat_id: number | string;
|
|
3083
|
+
phone_number: string;
|
|
3084
|
+
first_name: string;
|
|
3085
|
+
business_connection_id?: string;
|
|
3086
|
+
message_thread_id?: number;
|
|
3087
|
+
direct_messages_topic_id?: number;
|
|
3088
|
+
last_name?: string;
|
|
3089
|
+
vcard?: string;
|
|
3090
|
+
disable_notification?: boolean;
|
|
3091
|
+
protect_content?: boolean;
|
|
3092
|
+
allow_paid_broadcast?: boolean;
|
|
3093
|
+
message_effect_id?: string;
|
|
3094
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3095
|
+
reply_parameters?: ReplyParameters;
|
|
3096
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3097
|
+
}
|
|
3098
|
+
interface SendDiceInput {
|
|
3099
|
+
chat_id: number | string;
|
|
3100
|
+
business_connection_id?: string;
|
|
3101
|
+
message_thread_id?: number;
|
|
3102
|
+
direct_messages_topic_id?: number;
|
|
3103
|
+
emoji?: "🎲" | "🎯" | "🏀" | "⚽" | "🎳" | "🎰";
|
|
3104
|
+
disable_notification?: boolean;
|
|
3105
|
+
protect_content?: boolean;
|
|
3106
|
+
allow_paid_broadcast?: boolean;
|
|
3107
|
+
message_effect_id?: string;
|
|
3108
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3109
|
+
reply_parameters?: ReplyParameters;
|
|
3110
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3111
|
+
}
|
|
3112
|
+
interface SendDocumentInput {
|
|
3113
|
+
chat_id: number | string;
|
|
3114
|
+
document: InputFile | string;
|
|
3115
|
+
business_connection_id?: string;
|
|
3116
|
+
message_thread_id?: number;
|
|
3117
|
+
direct_messages_topic_id?: number;
|
|
3118
|
+
thumbnail?: InputFile | string;
|
|
3119
|
+
caption?: string;
|
|
3120
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3121
|
+
caption_entities?: MessageEntity[];
|
|
3122
|
+
disable_content_type_detection?: boolean;
|
|
3123
|
+
disable_notification?: boolean;
|
|
3124
|
+
protect_content?: boolean;
|
|
3125
|
+
allow_paid_broadcast?: boolean;
|
|
3126
|
+
message_effect_id?: string;
|
|
3127
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3128
|
+
reply_parameters?: ReplyParameters;
|
|
3129
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3130
|
+
}
|
|
3131
|
+
interface SendGameInput {
|
|
3132
|
+
chat_id: number;
|
|
3133
|
+
game_short_name: string;
|
|
3134
|
+
business_connection_id?: string;
|
|
3135
|
+
message_thread_id?: number;
|
|
3136
|
+
disable_notification?: boolean;
|
|
3137
|
+
protect_content?: boolean;
|
|
3138
|
+
allow_paid_broadcast?: boolean;
|
|
3139
|
+
message_effect_id?: string;
|
|
3140
|
+
reply_parameters?: ReplyParameters;
|
|
3141
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
3142
|
+
}
|
|
3143
|
+
interface SendGiftInput {
|
|
3144
|
+
gift_id: string;
|
|
3145
|
+
user_id?: number;
|
|
3146
|
+
chat_id?: number | string;
|
|
3147
|
+
pay_for_upgrade?: boolean;
|
|
3148
|
+
text?: string;
|
|
3149
|
+
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
3150
|
+
text_entities?: MessageEntity[];
|
|
3151
|
+
}
|
|
3152
|
+
interface SendInvoiceInput {
|
|
3153
|
+
chat_id: number | string;
|
|
3154
|
+
title: string;
|
|
3155
|
+
description: string;
|
|
3156
|
+
payload: string;
|
|
3157
|
+
currency: string;
|
|
3158
|
+
prices: LabeledPrice[];
|
|
3159
|
+
message_thread_id?: number;
|
|
3160
|
+
direct_messages_topic_id?: number;
|
|
3161
|
+
provider_token?: string;
|
|
3162
|
+
max_tip_amount?: number;
|
|
3163
|
+
suggested_tip_amounts?: number[];
|
|
3164
|
+
start_parameter?: string;
|
|
3165
|
+
provider_data?: string;
|
|
3166
|
+
photo_url?: string;
|
|
3167
|
+
photo_size?: number;
|
|
3168
|
+
photo_width?: number;
|
|
3169
|
+
photo_height?: number;
|
|
3170
|
+
need_name?: boolean;
|
|
3171
|
+
need_phone_number?: boolean;
|
|
3172
|
+
need_email?: boolean;
|
|
3173
|
+
need_shipping_address?: boolean;
|
|
3174
|
+
send_phone_number_to_provider?: boolean;
|
|
3175
|
+
send_email_to_provider?: boolean;
|
|
3176
|
+
is_flexible?: boolean;
|
|
3177
|
+
disable_notification?: boolean;
|
|
3178
|
+
protect_content?: boolean;
|
|
3179
|
+
allow_paid_broadcast?: boolean;
|
|
3180
|
+
message_effect_id?: string;
|
|
3181
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3182
|
+
reply_parameters?: ReplyParameters;
|
|
3183
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
3184
|
+
}
|
|
3185
|
+
interface SendLocationInput {
|
|
3186
|
+
chat_id: number | string;
|
|
3187
|
+
latitude: number;
|
|
3188
|
+
longitude: number;
|
|
3189
|
+
business_connection_id?: string;
|
|
3190
|
+
message_thread_id?: number;
|
|
3191
|
+
direct_messages_topic_id?: number;
|
|
3192
|
+
horizontal_accuracy?: number;
|
|
3193
|
+
live_period?: number;
|
|
3194
|
+
heading?: number;
|
|
3195
|
+
proximity_alert_radius?: number;
|
|
3196
|
+
disable_notification?: boolean;
|
|
3197
|
+
protect_content?: boolean;
|
|
3198
|
+
allow_paid_broadcast?: boolean;
|
|
3199
|
+
message_effect_id?: string;
|
|
3200
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3201
|
+
reply_parameters?: ReplyParameters;
|
|
3202
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3203
|
+
}
|
|
3204
|
+
interface SendMediaGroupInput {
|
|
3205
|
+
chat_id: number | string;
|
|
3206
|
+
media: (InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo)[];
|
|
3207
|
+
business_connection_id?: string;
|
|
3208
|
+
message_thread_id?: number;
|
|
3209
|
+
direct_messages_topic_id?: number;
|
|
3210
|
+
disable_notification?: boolean;
|
|
3211
|
+
protect_content?: boolean;
|
|
3212
|
+
allow_paid_broadcast?: boolean;
|
|
3213
|
+
message_effect_id?: string;
|
|
3214
|
+
reply_parameters?: ReplyParameters;
|
|
3215
|
+
}
|
|
3216
|
+
interface SendMessageInput {
|
|
3217
|
+
chat_id: number | string;
|
|
3218
|
+
text: string;
|
|
3219
|
+
business_connection_id?: string;
|
|
3220
|
+
message_thread_id?: number;
|
|
3221
|
+
direct_messages_topic_id?: number;
|
|
3222
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3223
|
+
entities?: MessageEntity[];
|
|
3224
|
+
link_preview_options?: LinkPreviewOptions;
|
|
3225
|
+
disable_notification?: boolean;
|
|
3226
|
+
protect_content?: boolean;
|
|
3227
|
+
allow_paid_broadcast?: boolean;
|
|
3228
|
+
message_effect_id?: string;
|
|
3229
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3230
|
+
reply_parameters?: ReplyParameters;
|
|
3231
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3232
|
+
}
|
|
3233
|
+
interface SendPaidMediaInput {
|
|
3234
|
+
chat_id: number | string;
|
|
3235
|
+
star_count: number;
|
|
3236
|
+
media: InputPaidMedia[];
|
|
3237
|
+
business_connection_id?: string;
|
|
3238
|
+
message_thread_id?: number;
|
|
3239
|
+
direct_messages_topic_id?: number;
|
|
3240
|
+
payload?: string;
|
|
3241
|
+
caption?: string;
|
|
3242
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3243
|
+
caption_entities?: MessageEntity[];
|
|
3244
|
+
show_caption_above_media?: boolean;
|
|
3245
|
+
disable_notification?: boolean;
|
|
3246
|
+
protect_content?: boolean;
|
|
3247
|
+
allow_paid_broadcast?: boolean;
|
|
3248
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3249
|
+
reply_parameters?: ReplyParameters;
|
|
3250
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3251
|
+
}
|
|
3252
|
+
interface SendPhotoInput {
|
|
3253
|
+
chat_id: number | string;
|
|
3254
|
+
photo: InputFile | string;
|
|
3255
|
+
business_connection_id?: string;
|
|
3256
|
+
message_thread_id?: number;
|
|
3257
|
+
direct_messages_topic_id?: number;
|
|
3258
|
+
caption?: string;
|
|
3259
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3260
|
+
caption_entities?: MessageEntity[];
|
|
3261
|
+
show_caption_above_media?: boolean;
|
|
3262
|
+
has_spoiler?: boolean;
|
|
3263
|
+
disable_notification?: boolean;
|
|
3264
|
+
protect_content?: boolean;
|
|
3265
|
+
allow_paid_broadcast?: boolean;
|
|
3266
|
+
message_effect_id?: string;
|
|
3267
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3268
|
+
reply_parameters?: ReplyParameters;
|
|
3269
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3270
|
+
}
|
|
3271
|
+
interface SendPollInput {
|
|
3272
|
+
chat_id: number | string;
|
|
3273
|
+
question: string;
|
|
3274
|
+
options: InputPollOption[];
|
|
3275
|
+
business_connection_id?: string;
|
|
3276
|
+
message_thread_id?: number;
|
|
3277
|
+
question_parse_mode?: "HTML" | "MarkdownV2";
|
|
3278
|
+
question_entities?: MessageEntity[];
|
|
3279
|
+
is_anonymous?: boolean;
|
|
3280
|
+
type?: string;
|
|
3281
|
+
allows_multiple_answers?: boolean;
|
|
3282
|
+
correct_option_id?: number;
|
|
3283
|
+
explanation?: string;
|
|
3284
|
+
explanation_parse_mode?: "HTML" | "MarkdownV2";
|
|
3285
|
+
explanation_entities?: MessageEntity[];
|
|
3286
|
+
open_period?: number;
|
|
3287
|
+
close_date?: number;
|
|
3288
|
+
is_closed?: boolean;
|
|
3289
|
+
disable_notification?: boolean;
|
|
3290
|
+
protect_content?: boolean;
|
|
3291
|
+
allow_paid_broadcast?: boolean;
|
|
3292
|
+
message_effect_id?: string;
|
|
3293
|
+
reply_parameters?: ReplyParameters;
|
|
3294
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3295
|
+
}
|
|
3296
|
+
interface SendStickerInput {
|
|
3297
|
+
chat_id: number | string;
|
|
3298
|
+
sticker: InputFile | string;
|
|
3299
|
+
business_connection_id?: string;
|
|
3300
|
+
message_thread_id?: number;
|
|
3301
|
+
direct_messages_topic_id?: number;
|
|
3302
|
+
emoji?: string;
|
|
3303
|
+
disable_notification?: boolean;
|
|
3304
|
+
protect_content?: boolean;
|
|
3305
|
+
allow_paid_broadcast?: boolean;
|
|
3306
|
+
message_effect_id?: string;
|
|
3307
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3308
|
+
reply_parameters?: ReplyParameters;
|
|
3309
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3310
|
+
}
|
|
3311
|
+
interface SendVenueInput {
|
|
3312
|
+
chat_id: number | string;
|
|
3313
|
+
latitude: number;
|
|
3314
|
+
longitude: number;
|
|
3315
|
+
title: string;
|
|
3316
|
+
address: string;
|
|
3317
|
+
business_connection_id?: string;
|
|
3318
|
+
message_thread_id?: number;
|
|
3319
|
+
direct_messages_topic_id?: number;
|
|
3320
|
+
foursquare_id?: string;
|
|
3321
|
+
foursquare_type?: string;
|
|
3322
|
+
google_place_id?: string;
|
|
3323
|
+
google_place_type?: string;
|
|
3324
|
+
disable_notification?: boolean;
|
|
3325
|
+
protect_content?: boolean;
|
|
3326
|
+
allow_paid_broadcast?: boolean;
|
|
3327
|
+
message_effect_id?: string;
|
|
3328
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3329
|
+
reply_parameters?: ReplyParameters;
|
|
3330
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3331
|
+
}
|
|
3332
|
+
interface SendVideoInput {
|
|
3333
|
+
chat_id: number | string;
|
|
3334
|
+
video: InputFile | string;
|
|
3335
|
+
business_connection_id?: string;
|
|
3336
|
+
message_thread_id?: number;
|
|
3337
|
+
direct_messages_topic_id?: number;
|
|
3338
|
+
duration?: number;
|
|
3339
|
+
width?: number;
|
|
3340
|
+
height?: number;
|
|
3341
|
+
thumbnail?: InputFile | string;
|
|
3342
|
+
cover?: InputFile | string;
|
|
3343
|
+
start_timestamp?: number;
|
|
3344
|
+
caption?: string;
|
|
3345
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3346
|
+
caption_entities?: MessageEntity[];
|
|
3347
|
+
show_caption_above_media?: boolean;
|
|
3348
|
+
has_spoiler?: boolean;
|
|
3349
|
+
supports_streaming?: boolean;
|
|
3350
|
+
disable_notification?: boolean;
|
|
3351
|
+
protect_content?: boolean;
|
|
3352
|
+
allow_paid_broadcast?: boolean;
|
|
3353
|
+
message_effect_id?: string;
|
|
3354
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3355
|
+
reply_parameters?: ReplyParameters;
|
|
3356
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3357
|
+
}
|
|
3358
|
+
interface SendVideoNoteInput {
|
|
3359
|
+
chat_id: number | string;
|
|
3360
|
+
video_note: InputFile | string;
|
|
3361
|
+
business_connection_id?: string;
|
|
3362
|
+
message_thread_id?: number;
|
|
3363
|
+
direct_messages_topic_id?: number;
|
|
3364
|
+
duration?: number;
|
|
3365
|
+
length?: number;
|
|
3366
|
+
thumbnail?: InputFile | string;
|
|
3367
|
+
disable_notification?: boolean;
|
|
3368
|
+
protect_content?: boolean;
|
|
3369
|
+
allow_paid_broadcast?: boolean;
|
|
3370
|
+
message_effect_id?: string;
|
|
3371
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3372
|
+
reply_parameters?: ReplyParameters;
|
|
3373
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3374
|
+
}
|
|
3375
|
+
interface SendVoiceInput {
|
|
3376
|
+
chat_id: number | string;
|
|
3377
|
+
voice: InputFile | string;
|
|
3378
|
+
business_connection_id?: string;
|
|
3379
|
+
message_thread_id?: number;
|
|
3380
|
+
direct_messages_topic_id?: number;
|
|
3381
|
+
caption?: string;
|
|
3382
|
+
parse_mode?: "HTML" | "MarkdownV2";
|
|
3383
|
+
caption_entities?: MessageEntity[];
|
|
3384
|
+
duration?: number;
|
|
3385
|
+
disable_notification?: boolean;
|
|
3386
|
+
protect_content?: boolean;
|
|
3387
|
+
allow_paid_broadcast?: boolean;
|
|
3388
|
+
message_effect_id?: string;
|
|
3389
|
+
suggested_post_parameters?: SuggestedPostParameters;
|
|
3390
|
+
reply_parameters?: ReplyParameters;
|
|
3391
|
+
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
3392
|
+
}
|
|
3393
|
+
interface SetBusinessAccountBioInput {
|
|
3394
|
+
business_connection_id: string;
|
|
3395
|
+
bio?: string;
|
|
3396
|
+
}
|
|
3397
|
+
interface SetBusinessAccountGiftSettingsInput {
|
|
3398
|
+
business_connection_id: string;
|
|
3399
|
+
show_gift_button: boolean;
|
|
3400
|
+
accepted_gift_types: AcceptedGiftTypes;
|
|
3401
|
+
}
|
|
3402
|
+
interface SetBusinessAccountNameInput {
|
|
3403
|
+
business_connection_id: string;
|
|
3404
|
+
first_name: string;
|
|
3405
|
+
last_name?: string;
|
|
3406
|
+
}
|
|
3407
|
+
interface SetBusinessAccountProfilePhotoInput {
|
|
3408
|
+
business_connection_id: string;
|
|
3409
|
+
photo: InputProfilePhoto;
|
|
3410
|
+
is_public?: boolean;
|
|
3411
|
+
}
|
|
3412
|
+
interface SetBusinessAccountUsernameInput {
|
|
3413
|
+
business_connection_id: string;
|
|
3414
|
+
username?: string;
|
|
3415
|
+
}
|
|
3416
|
+
interface SetChatAdministratorCustomTitleInput {
|
|
3417
|
+
chat_id: number | string;
|
|
3418
|
+
user_id: number;
|
|
3419
|
+
custom_title: string;
|
|
3420
|
+
}
|
|
3421
|
+
interface SetChatDescriptionInput {
|
|
3422
|
+
chat_id: number | string;
|
|
3423
|
+
description?: string;
|
|
3424
|
+
}
|
|
3425
|
+
interface SetChatMenuButtonInput {
|
|
3426
|
+
chat_id?: number;
|
|
3427
|
+
menu_button?: MenuButton;
|
|
3428
|
+
}
|
|
3429
|
+
interface SetChatPermissionsInput {
|
|
3430
|
+
chat_id: number | string;
|
|
3431
|
+
permissions: ChatPermissions;
|
|
3432
|
+
use_independent_chat_permissions?: boolean;
|
|
3433
|
+
}
|
|
3434
|
+
interface SetChatPhotoInput {
|
|
3435
|
+
chat_id: number | string;
|
|
3436
|
+
photo: InputFile;
|
|
3437
|
+
}
|
|
3438
|
+
interface SetChatStickerSetInput {
|
|
3439
|
+
chat_id: number | string;
|
|
3440
|
+
sticker_set_name: string;
|
|
3441
|
+
}
|
|
3442
|
+
interface SetChatTitleInput {
|
|
3443
|
+
chat_id: number | string;
|
|
3444
|
+
title: string;
|
|
3445
|
+
}
|
|
3446
|
+
interface SetCustomEmojiStickerSetThumbnailInput {
|
|
3447
|
+
name: string;
|
|
3448
|
+
custom_emoji_id?: string;
|
|
3449
|
+
}
|
|
3450
|
+
interface SetGameScoreInput {
|
|
3451
|
+
user_id: number;
|
|
3452
|
+
score: number;
|
|
3453
|
+
force?: boolean;
|
|
3454
|
+
disable_edit_message?: boolean;
|
|
3455
|
+
chat_id?: number;
|
|
3456
|
+
message_id?: number;
|
|
3457
|
+
inline_message_id?: string;
|
|
3458
|
+
}
|
|
3459
|
+
interface SetMessageReactionInput {
|
|
3460
|
+
chat_id: number | string;
|
|
3461
|
+
message_id: number;
|
|
3462
|
+
reaction?: ReactionType[];
|
|
3463
|
+
is_big?: boolean;
|
|
3464
|
+
}
|
|
3465
|
+
interface SetMyCommandsInput {
|
|
3466
|
+
commands: BotCommand[];
|
|
3467
|
+
scope?: BotCommandScope;
|
|
3468
|
+
language_code?: string;
|
|
3469
|
+
}
|
|
3470
|
+
interface SetMyDefaultAdministratorRightsInput {
|
|
3471
|
+
rights?: ChatAdministratorRights;
|
|
3472
|
+
for_channels?: boolean;
|
|
3473
|
+
}
|
|
3474
|
+
interface SetMyDescriptionInput {
|
|
3475
|
+
description?: string;
|
|
3476
|
+
language_code?: string;
|
|
3477
|
+
}
|
|
3478
|
+
interface SetMyNameInput {
|
|
3479
|
+
name?: string;
|
|
3480
|
+
language_code?: string;
|
|
3481
|
+
}
|
|
3482
|
+
interface SetMyShortDescriptionInput {
|
|
3483
|
+
short_description?: string;
|
|
3484
|
+
language_code?: string;
|
|
3485
|
+
}
|
|
3486
|
+
interface SetPassportDataErrorsInput {
|
|
3487
|
+
user_id: number;
|
|
3488
|
+
errors: PassportElementError[];
|
|
3489
|
+
}
|
|
3490
|
+
interface SetStickerEmojiListInput {
|
|
3491
|
+
sticker: string;
|
|
3492
|
+
emoji_list: string[];
|
|
3493
|
+
}
|
|
3494
|
+
interface SetStickerKeywordsInput {
|
|
3495
|
+
sticker: string;
|
|
3496
|
+
keywords?: string[];
|
|
3497
|
+
}
|
|
3498
|
+
interface SetStickerMaskPositionInput {
|
|
3499
|
+
sticker: string;
|
|
3500
|
+
mask_position?: MaskPosition;
|
|
3501
|
+
}
|
|
3502
|
+
interface SetStickerPositionInSetInput {
|
|
3503
|
+
sticker: string;
|
|
3504
|
+
position: number;
|
|
3505
|
+
}
|
|
3506
|
+
interface SetStickerSetThumbnailInput {
|
|
3507
|
+
name: string;
|
|
3508
|
+
user_id: number;
|
|
3509
|
+
format: "static" | "animated" | "video";
|
|
3510
|
+
thumbnail?: InputFile | string;
|
|
3511
|
+
}
|
|
3512
|
+
interface SetStickerSetTitleInput {
|
|
3513
|
+
name: string;
|
|
3514
|
+
title: string;
|
|
3515
|
+
}
|
|
3516
|
+
interface SetUserEmojiStatusInput {
|
|
3517
|
+
user_id: number;
|
|
3518
|
+
emoji_status_custom_emoji_id?: string;
|
|
3519
|
+
emoji_status_expiration_date?: number;
|
|
3520
|
+
}
|
|
3521
|
+
interface SetWebhookInput {
|
|
3522
|
+
url: string;
|
|
3523
|
+
certificate?: InputFile;
|
|
3524
|
+
ip_address?: string;
|
|
3525
|
+
max_connections?: number;
|
|
3526
|
+
allowed_updates?: AllowedUpdateName[];
|
|
3527
|
+
drop_pending_updates?: boolean;
|
|
3528
|
+
secret_token?: string;
|
|
3529
|
+
}
|
|
3530
|
+
interface StopMessageLiveLocationInput {
|
|
3531
|
+
business_connection_id?: string;
|
|
3532
|
+
chat_id?: number | string;
|
|
3533
|
+
message_id?: number;
|
|
3534
|
+
inline_message_id?: string;
|
|
3535
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
3536
|
+
}
|
|
3537
|
+
interface StopPollInput {
|
|
3538
|
+
chat_id: number | string;
|
|
3539
|
+
message_id: number;
|
|
3540
|
+
business_connection_id?: string;
|
|
3541
|
+
reply_markup?: InlineKeyboardMarkup;
|
|
3542
|
+
}
|
|
3543
|
+
interface TransferBusinessAccountStarsInput {
|
|
3544
|
+
business_connection_id: string;
|
|
3545
|
+
star_count: number;
|
|
3546
|
+
}
|
|
3547
|
+
interface TransferGiftInput {
|
|
3548
|
+
business_connection_id: string;
|
|
3549
|
+
owned_gift_id: string;
|
|
3550
|
+
new_owner_chat_id: number;
|
|
3551
|
+
star_count?: number;
|
|
3552
|
+
}
|
|
3553
|
+
interface UnbanChatMemberInput {
|
|
3554
|
+
chat_id: number | string;
|
|
3555
|
+
user_id: number;
|
|
3556
|
+
only_if_banned?: boolean;
|
|
3557
|
+
}
|
|
3558
|
+
interface UnbanChatSenderChatInput {
|
|
3559
|
+
chat_id: number | string;
|
|
3560
|
+
sender_chat_id: number;
|
|
3561
|
+
}
|
|
3562
|
+
interface UnhideGeneralForumTopicInput {
|
|
3563
|
+
chat_id: number | string;
|
|
3564
|
+
}
|
|
3565
|
+
interface UnpinAllChatMessagesInput {
|
|
3566
|
+
chat_id: number | string;
|
|
3567
|
+
}
|
|
3568
|
+
interface UnpinAllForumTopicMessagesInput {
|
|
3569
|
+
chat_id: number | string;
|
|
3570
|
+
message_thread_id: number;
|
|
3571
|
+
}
|
|
3572
|
+
interface UnpinAllGeneralForumTopicMessagesInput {
|
|
3573
|
+
chat_id: number | string;
|
|
3574
|
+
}
|
|
3575
|
+
interface UnpinChatMessageInput {
|
|
3576
|
+
chat_id: number | string;
|
|
3577
|
+
business_connection_id?: string;
|
|
3578
|
+
message_id?: number;
|
|
3579
|
+
}
|
|
3580
|
+
interface UpgradeGiftInput {
|
|
3581
|
+
business_connection_id: string;
|
|
3582
|
+
owned_gift_id: string;
|
|
3583
|
+
keep_original_details?: boolean;
|
|
3584
|
+
star_count?: number;
|
|
3585
|
+
}
|
|
3586
|
+
interface UploadStickerFileInput {
|
|
3587
|
+
user_id: number;
|
|
3588
|
+
sticker: InputFile;
|
|
3589
|
+
sticker_format: "static" | "animated" | "video";
|
|
3590
|
+
}
|
|
3591
|
+
interface VerifyChatInput {
|
|
3592
|
+
chat_id: number | string;
|
|
3593
|
+
custom_description?: string;
|
|
3594
|
+
}
|
|
3595
|
+
interface VerifyUserInput {
|
|
3596
|
+
user_id: number;
|
|
3597
|
+
custom_description?: string;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
export type { Accelerometer, AccelerometerStartParams, AcceptedGiftTypes, AddStickerToSetInput, AffiliateInfo, AllowedUpdateName, Animation, AnswerCallbackQueryInput, AnswerInlineQueryInput, AnswerPreCheckoutQueryInput, AnswerShippingQueryInput, AnswerWebAppQueryInput, Api, ApproveChatJoinRequestInput, ApproveSuggestedPostInput, Audio, BackButton, BackgroundFill, BackgroundFillFreeformGradient, BackgroundFillGradient, BackgroundFillSolid, BackgroundType, BackgroundTypeChatTheme, BackgroundTypeFill, BackgroundTypePattern, BackgroundTypeWallpaper, BanChatMemberInput, BanChatSenderChatInput, BindOrUnbindEventHandler, BiometricAuthenticateParams, BiometricManager, BiometricRequestAccessParams, Birthdate, BotCommand, BotCommandScope, BotCommandScopeAllChatAdministrators, BotCommandScopeAllGroupChats, BotCommandScopeAllPrivateChats, BotCommandScopeChat, BotCommandScopeChatAdministrators, BotCommandScopeChatMember, BotCommandScopeDefault, BotDescription, BotName, BotShortDescription, BottomButton, BusinessBotRights, BusinessConnection, BusinessIntro, BusinessLocation, BusinessMessagesDeleted, BusinessOpeningHours, BusinessOpeningHoursInterval, CallbackGame, CallbackQuery, Chat, ChatAdministratorRights, ChatBackground, ChatBoost, ChatBoostAdded, ChatBoostRemoved, ChatBoostSource, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway, ChatBoostSourcePremium, ChatBoostUpdated, ChatFullInfo, ChatInviteLink, ChatJoinRequest, ChatLocation, ChatMember, ChatMemberAdministrator, ChatMemberBanned, ChatMemberLeft, ChatMemberMember, ChatMemberOwner, ChatMemberRestricted, ChatMemberUpdated, ChatPermissions, ChatPhoto, ChatShared, Checklist, ChecklistTask, ChecklistTasksAdded, ChecklistTasksDone, ChosenInlineResult, CloseForumTopicInput, CloseGeneralForumTopicInput, CloseInput, CloudStorage, Contact, ContentSafeAreaInset, ConvertGiftToStarsInput, CopyMessageInput, CopyMessagesInput, CopyTextButton, CreateChatInviteLinkInput, CreateChatSubscriptionInviteLinkInput, CreateForumTopicInput, CreateInvoiceLinkInput, CreateNewStickerSetInput, DeclineChatJoinRequestInput, DeclineSuggestedPostInput, DeleteBusinessMessagesInput, DeleteChatPhotoInput, DeleteChatStickerSetInput, DeleteForumTopicInput, DeleteMessageInput, DeleteMessagesInput, DeleteMyCommandsInput, DeleteStickerFromSetInput, DeleteStickerSetInput, DeleteStoryInput, DeleteWebhookInput, DeviceOrientation, DeviceOrientationStartParams, DeviceStorage, Dice, DirectMessagePriceChanged, DirectMessagesTopic, Document, DownloadFileParams, EditChatInviteLinkInput, EditChatSubscriptionInviteLinkInput, EditForumTopicInput, EditGeneralForumTopicInput, EditMessageCaptionInput, EditMessageChecklistInput, EditMessageLiveLocationInput, EditMessageMediaInput, EditMessageReplyMarkupInput, EditMessageTextInput, EditStoryInput, EditUserStarSubscriptionInput, EmojiStatusParams, EncryptedCredentials, EncryptedPassportElement, EventHandlers, ExportChatInviteLinkInput, ExternalReplyInfo, File, ForceReply, ForumTopic, ForumTopicClosed, ForumTopicCreated, ForumTopicEdited, ForumTopicReopened, ForwardMessageInput, ForwardMessagesInput, Game, GameHighScore, GeneralForumTopicHidden, GeneralForumTopicUnhidden, GetAvailableGiftsInput, GetBusinessAccountGiftsInput, GetBusinessAccountStarBalanceInput, GetBusinessConnectionInput, GetChatAdministratorsInput, GetChatInput, GetChatMemberCountInput, GetChatMemberInput, GetChatMenuButtonInput, GetCustomEmojiStickersInput, GetFileInput, GetForumTopicIconStickersInput, GetGameHighScoresInput, GetMeInput, GetMyCommandsInput, GetMyDefaultAdministratorRightsInput, GetMyDescriptionInput, GetMyNameInput, GetMyShortDescriptionInput, GetMyStarBalanceInput, GetStarTransactionsInput, GetStickerSetInput, GetUpdatesInput, GetUserChatBoostsInput, GetUserProfilePhotosInput, GetWebhookInfoInput, Gift, GiftInfo, GiftPremiumSubscriptionInput, Gifts, Giveaway, GiveawayCompleted, GiveawayCreated, GiveawayWinners, Gyroscope, GyroscopeStartParams, HapticFeedback, HideGeneralForumTopicInput, InaccessibleMessage, InlineKeyboardButton, InlineKeyboardMarkup, InlineQuery, InlineQueryResult, InlineQueryResultArticle, InlineQueryResultAudio, InlineQueryResultCachedAudio, InlineQueryResultCachedDocument, InlineQueryResultCachedGif, InlineQueryResultCachedMpeg4Gif, InlineQueryResultCachedPhoto, InlineQueryResultCachedSticker, InlineQueryResultCachedVideo, InlineQueryResultCachedVoice, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultGame, InlineQueryResultGif, InlineQueryResultLocation, InlineQueryResultMpeg4Gif, InlineQueryResultPhoto, InlineQueryResultVenue, InlineQueryResultVideo, InlineQueryResultVoice, InlineQueryResultsButton, InputChecklist, InputChecklistTask, InputContactMessageContent, InputFile, InputInvoiceMessageContent, InputLocationMessageContent, InputMedia, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo, InputMessageContent, InputPaidMedia, InputPaidMediaPhoto, InputPaidMediaVideo, InputPollOption, InputProfilePhoto, InputProfilePhotoAnimated, InputProfilePhotoStatic, InputSticker, InputStoryContent, InputStoryContentPhoto, InputStoryContentVideo, InputTextMessageContent, InputVenueMessageContent, Invoice, KeyboardButton, KeyboardButtonPollType, KeyboardButtonRequestChat, KeyboardButtonRequestUsers, LabeledPrice, LeaveChatInput, LinkPreviewOptions, Location, LocationAddress, LocationData, LocationManager, LogOutInput, LoginUrl, MaskPosition, MaybeInaccessibleMessage, MenuButton, MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp, Message, MessageAutoDeleteTimerChanged, MessageEntity, MessageId, MessageOrigin, MessageOriginChannel, MessageOriginChat, MessageOriginHiddenUser, MessageOriginUser, MessageReactionCountUpdated, MessageReactionUpdated, OrderInfo, OwnedGift, OwnedGiftRegular, OwnedGiftUnique, OwnedGifts, PaidMedia, PaidMediaInfo, PaidMediaPhoto, PaidMediaPreview, PaidMediaPurchased, PaidMediaVideo, PaidMessagePriceChanged, PassportData, PassportElementError, PassportElementErrorDataField, PassportElementErrorFile, PassportElementErrorFiles, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorTranslationFile, PassportElementErrorTranslationFiles, PassportElementErrorUnspecified, PassportFile, PhotoSize, PinChatMessageInput, Poll, PollAnswer, PollOption, PopupButton, PopupParams, PostStoryInput, PreCheckoutQuery, PreparedInlineMessage, PromoteChatMemberInput, ProximityAlertTriggered, ReactionCount, ReactionType, ReactionTypeCustomEmoji, ReactionTypeEmoji, ReactionTypePaid, ReadBusinessMessageInput, RefundStarPaymentInput, RefundedPayment, RemoveBusinessAccountProfilePhotoInput, RemoveChatVerificationInput, RemoveUserVerificationInput, ReopenForumTopicInput, ReopenGeneralForumTopicInput, ReplaceStickerInSetInput, ReplyKeyboardMarkup, ReplyKeyboardRemove, ReplyParameters, ResponseParameters, RestrictChatMemberInput, RevenueWithdrawalState, RevenueWithdrawalStateFailed, RevenueWithdrawalStatePending, RevenueWithdrawalStateSucceeded, RevokeChatInviteLinkInput, SafeAreaInset, SavePreparedInlineMessageInput, ScanQrPopupParams, SecureStorage, SendAnimationInput, SendAudioInput, SendChatActionInput, SendChecklistInput, SendContactInput, SendDiceInput, SendDocumentInput, SendGameInput, SendGiftInput, SendInvoiceInput, SendLocationInput, SendMediaGroupInput, SendMessageInput, SendPaidMediaInput, SendPhotoInput, SendPollInput, SendStickerInput, SendVenueInput, SendVideoInput, SendVideoNoteInput, SendVoiceInput, SentWebAppMessage, SetBusinessAccountBioInput, SetBusinessAccountGiftSettingsInput, SetBusinessAccountNameInput, SetBusinessAccountProfilePhotoInput, SetBusinessAccountUsernameInput, SetChatAdministratorCustomTitleInput, SetChatDescriptionInput, SetChatMenuButtonInput, SetChatPermissionsInput, SetChatPhotoInput, SetChatStickerSetInput, SetChatTitleInput, SetCustomEmojiStickerSetThumbnailInput, SetGameScoreInput, SetMessageReactionInput, SetMyCommandsInput, SetMyDefaultAdministratorRightsInput, SetMyDescriptionInput, SetMyNameInput, SetMyShortDescriptionInput, SetPassportDataErrorsInput, SetStickerEmojiListInput, SetStickerKeywordsInput, SetStickerMaskPositionInput, SetStickerPositionInSetInput, SetStickerSetThumbnailInput, SetStickerSetTitleInput, SetUserEmojiStatusInput, SetWebhookInput, SettingsButton, SharedUser, ShippingAddress, ShippingOption, ShippingQuery, StarAmount, StarTransaction, StarTransactions, Sticker, StickerSet, StopMessageLiveLocationInput, StopPollInput, Story, StoryArea, StoryAreaPosition, StoryAreaType, StoryAreaTypeLink, StoryAreaTypeLocation, StoryAreaTypeSuggestedReaction, StoryAreaTypeUniqueGift, StoryAreaTypeWeather, StoryShareParams, StoryWidgetLink, SuccessfulPayment, SuggestedPostApprovalFailed, SuggestedPostApproved, SuggestedPostDeclined, SuggestedPostInfo, SuggestedPostPaid, SuggestedPostParameters, SuggestedPostPrice, SuggestedPostRefunded, SwitchInlineQueryChosenChat, TextQuote, ThemeParams, TransactionPartner, TransactionPartnerAffiliateProgram, TransactionPartnerChat, TransactionPartnerFragment, TransactionPartnerOther, TransactionPartnerTelegramAds, TransactionPartnerTelegramApi, TransactionPartnerUser, TransferBusinessAccountStarsInput, TransferGiftInput, UnbanChatMemberInput, UnbanChatSenderChatInput, UnhideGeneralForumTopicInput, UniqueGift, UniqueGiftBackdrop, UniqueGiftBackdropColors, UniqueGiftInfo, UniqueGiftModel, UniqueGiftSymbol, UnpinAllChatMessagesInput, UnpinAllForumTopicMessagesInput, UnpinAllGeneralForumTopicMessagesInput, UnpinChatMessageInput, Update, UpgradeGiftInput, UploadStickerFileInput, User, UserChatBoosts, UserProfilePhotos, UsersShared, Venue, VerifyChatInput, VerifyUserInput, Video, VideoChatEnded, VideoChatParticipantsInvited, VideoChatScheduled, VideoChatStarted, VideoNote, Voice, WebApp, WebAppChat, WebAppData, WebAppInfo, WebAppInitData, WebAppUser, WebhookInfo, WriteAccessAllowed };
|