@grom.js/bot-api-spec 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +47 -0
- package/dist/index.d.ts +599 -0
- package/dist/index.js +21765 -0
- package/package.json +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025–PRESENT Vladislav Deryabkin
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[Telegram Bot API](https://core.telegram.org/bots/api) specification as a collection of JavaScript objects in a [custom format](#format).
|
|
2
|
+
|
|
3
|
+
> ⚠️ Work in progress.
|
|
4
|
+
|
|
5
|
+
## Motivation
|
|
6
|
+
|
|
7
|
+
Automatically generate tools, libraries, MCP servers, custom documentations, etc.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { types, methods } from '@grom.js/bot-api-spec'
|
|
13
|
+
|
|
14
|
+
console.log(types) // { Update: <definition of Update>, ... }
|
|
15
|
+
console.log(methods) // { getUpdates: <definition of getUpdates>, ... }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Format
|
|
19
|
+
|
|
20
|
+
See [./src/types.ts](./src/types.ts)
|
|
21
|
+
|
|
22
|
+
### Value Types
|
|
23
|
+
|
|
24
|
+
We define custom value types to represent types of the fields and parameters, to allow generating more flexible and user-friendly code.
|
|
25
|
+
|
|
26
|
+
Below are the rules how we map type of a field/parameter to the `ValueType`:
|
|
27
|
+
|
|
28
|
+
- _Type_ is _String_ — `{ kind: 'str' }`
|
|
29
|
+
- _Type_ is _Integer_ — `{ kind: 'int32' }`
|
|
30
|
+
- _Type_ is _Integer_ and _Description_ says "...may have more than 32 significant bits...but it has at most 52 significant bits..." — `{ kind: 'int52' }`
|
|
31
|
+
- _Type_ is _Boolean_ — `{ kind: 'bool' }`
|
|
32
|
+
- _Type_ is _True_ — `{ kind: 'bool', literal: true }`
|
|
33
|
+
- _Type_ is _Float_ — `{ kind: 'float' }`
|
|
34
|
+
- _Description_ says "always X" — `{ kind: ..., literal: X }`
|
|
35
|
+
- _Type_ is _InputFile_ — `{ kind: 'input-file' }`
|
|
36
|
+
- _Type_ is _X_, where X is any API type — `{ kind: 'api-type', name: X }`
|
|
37
|
+
- _Type_ is _Array of X_ — `{ kind: 'array', of: X }`
|
|
38
|
+
- _Type_ is _X or Y or ..._ — `{ kind: 'union', types: [X, Y, ...] }`
|
|
39
|
+
|
|
40
|
+
### Descriptions
|
|
41
|
+
|
|
42
|
+
Objects also include descriptions of the API types, methods, fields, and parameters, with the following remarks:
|
|
43
|
+
|
|
44
|
+
- Description is an object with a single `markdown` property, a string containing the description in Markdown format with formatting (**bold**, _italic_, etc.) and links preserved.
|
|
45
|
+
- "_Optional._" prefix in field descriptions is omitted; instead, the `required` property is set to `false` for such fields.
|
|
46
|
+
- "JSON-serialized..." in field/parameter descriptions is omitted; instead, the `jsonSerialized` property is set to `true` for such fields/parameters.
|
|
47
|
+
- "...may have more than 32 significant bits...but it has at most 52 significant bits..." in _Integer_ field/parameter descriptions is omitted; instead, `kind` is set to `int52` for such fields/parameters.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Type defined in the API. It can either be an {@link ApiTypeObject object}
|
|
4
|
+
* or a {@link ApiTypeOneOf union}.
|
|
5
|
+
*/
|
|
6
|
+
type ApiType = ApiTypeObject | ApiTypeOneOf;
|
|
7
|
+
interface ApiTypeObject {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the type.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Description of the type.
|
|
14
|
+
*/
|
|
15
|
+
description: Description;
|
|
16
|
+
/**
|
|
17
|
+
* Fields of the object representing this type.
|
|
18
|
+
*/
|
|
19
|
+
fields: Array<FieldOrParam>;
|
|
20
|
+
}
|
|
21
|
+
interface ApiTypeOneOf {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the type.
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Description of the type.
|
|
28
|
+
*/
|
|
29
|
+
description: Description;
|
|
30
|
+
/**
|
|
31
|
+
* Array of possible types this type can be.
|
|
32
|
+
*/
|
|
33
|
+
oneOf: Array<ValueTypeApiType>;
|
|
34
|
+
}
|
|
35
|
+
interface ApiMethod {
|
|
36
|
+
/**
|
|
37
|
+
* Name of the method.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Description of the method.
|
|
42
|
+
*/
|
|
43
|
+
description: Description;
|
|
44
|
+
/**
|
|
45
|
+
* Parameters this method takes.
|
|
46
|
+
*/
|
|
47
|
+
parameters: Array<FieldOrParam>;
|
|
48
|
+
/**
|
|
49
|
+
* Type of the value this method returns.
|
|
50
|
+
*/
|
|
51
|
+
returnType: ValueType;
|
|
52
|
+
}
|
|
53
|
+
interface FieldOrParam {
|
|
54
|
+
/**
|
|
55
|
+
* Name of the field/parameter.
|
|
56
|
+
*/
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* Type of the value this field/parameter can be assigned.
|
|
60
|
+
*/
|
|
61
|
+
type: ValueType;
|
|
62
|
+
/**
|
|
63
|
+
* Whether this is a required field/parameter.
|
|
64
|
+
*/
|
|
65
|
+
required: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Description of the field/parameter.
|
|
68
|
+
*/
|
|
69
|
+
description: Description;
|
|
70
|
+
/**
|
|
71
|
+
* Whether this field/parameter should be JSON-serialized.
|
|
72
|
+
*/
|
|
73
|
+
jsonSerialized: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Description of a type/method/field/parameter.
|
|
77
|
+
*/
|
|
78
|
+
interface Description {
|
|
79
|
+
markdown: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Type of a value.
|
|
83
|
+
*/
|
|
84
|
+
type ValueType = ValueTypeString | ValueTypeBoolean | ValueTypeInteger32 | ValueTypeInteger52 | ValueTypeFloat | ValueTypeInputFile | ValueTypeApiType | ValueTypeArray | ValueTypeUnion;
|
|
85
|
+
/**
|
|
86
|
+
* `String` value type.
|
|
87
|
+
*/
|
|
88
|
+
interface ValueTypeString {
|
|
89
|
+
kind: 'str';
|
|
90
|
+
literal?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* `Boolean` value type.
|
|
94
|
+
*/
|
|
95
|
+
interface ValueTypeBoolean {
|
|
96
|
+
kind: 'bool';
|
|
97
|
+
literal?: boolean;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* `Integer` value type, which fits in a 32-bit integer.
|
|
101
|
+
*/
|
|
102
|
+
interface ValueTypeInteger32 {
|
|
103
|
+
kind: 'int32';
|
|
104
|
+
literal?: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* `Integer` value type, which may have more than 32 significant bits, but has
|
|
108
|
+
* at most 52 significant bits, so a 64-bit integer or double-precision float
|
|
109
|
+
* type are safe for storing values of this type.
|
|
110
|
+
*/
|
|
111
|
+
interface ValueTypeInteger52 {
|
|
112
|
+
kind: 'int52';
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* `Float` value type.
|
|
116
|
+
*/
|
|
117
|
+
interface ValueTypeFloat {
|
|
118
|
+
kind: 'float';
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* [`InputFile`](https://core.telegram.org/bots/api#inputfile) value type.
|
|
122
|
+
*/
|
|
123
|
+
interface ValueTypeInputFile {
|
|
124
|
+
kind: 'input-file';
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Any {@link ApiType} value type.
|
|
128
|
+
*/
|
|
129
|
+
interface ValueTypeApiType {
|
|
130
|
+
kind: 'api-type';
|
|
131
|
+
name: keyof typeof types;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Array of any value type.
|
|
135
|
+
*/
|
|
136
|
+
interface ValueTypeArray {
|
|
137
|
+
kind: 'array';
|
|
138
|
+
of: ValueType;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Union of any value types.
|
|
142
|
+
*/
|
|
143
|
+
interface ValueTypeUnion {
|
|
144
|
+
kind: 'union';
|
|
145
|
+
types: Array<ValueType>;
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/bot-api/methods.gen.d.ts
|
|
149
|
+
/**
|
|
150
|
+
* Definition of all Bot API methods as an object.
|
|
151
|
+
* Properties are created in the same order as they appear in the docs.
|
|
152
|
+
*/
|
|
153
|
+
declare const methods: {
|
|
154
|
+
getUpdates: ApiMethod;
|
|
155
|
+
setWebhook: ApiMethod;
|
|
156
|
+
deleteWebhook: ApiMethod;
|
|
157
|
+
getWebhookInfo: ApiMethod;
|
|
158
|
+
getMe: ApiMethod;
|
|
159
|
+
logOut: ApiMethod;
|
|
160
|
+
close: ApiMethod;
|
|
161
|
+
sendMessage: ApiMethod;
|
|
162
|
+
forwardMessage: ApiMethod;
|
|
163
|
+
forwardMessages: ApiMethod;
|
|
164
|
+
copyMessage: ApiMethod;
|
|
165
|
+
copyMessages: ApiMethod;
|
|
166
|
+
sendPhoto: ApiMethod;
|
|
167
|
+
sendAudio: ApiMethod;
|
|
168
|
+
sendDocument: ApiMethod;
|
|
169
|
+
sendVideo: ApiMethod;
|
|
170
|
+
sendAnimation: ApiMethod;
|
|
171
|
+
sendVoice: ApiMethod;
|
|
172
|
+
sendVideoNote: ApiMethod;
|
|
173
|
+
sendPaidMedia: ApiMethod;
|
|
174
|
+
sendMediaGroup: ApiMethod;
|
|
175
|
+
sendLocation: ApiMethod;
|
|
176
|
+
sendVenue: ApiMethod;
|
|
177
|
+
sendContact: ApiMethod;
|
|
178
|
+
sendPoll: ApiMethod;
|
|
179
|
+
sendChecklist: ApiMethod;
|
|
180
|
+
sendDice: ApiMethod;
|
|
181
|
+
sendChatAction: ApiMethod;
|
|
182
|
+
setMessageReaction: ApiMethod;
|
|
183
|
+
getUserProfilePhotos: ApiMethod;
|
|
184
|
+
setUserEmojiStatus: ApiMethod;
|
|
185
|
+
getFile: ApiMethod;
|
|
186
|
+
banChatMember: ApiMethod;
|
|
187
|
+
unbanChatMember: ApiMethod;
|
|
188
|
+
restrictChatMember: ApiMethod;
|
|
189
|
+
promoteChatMember: ApiMethod;
|
|
190
|
+
setChatAdministratorCustomTitle: ApiMethod;
|
|
191
|
+
banChatSenderChat: ApiMethod;
|
|
192
|
+
unbanChatSenderChat: ApiMethod;
|
|
193
|
+
setChatPermissions: ApiMethod;
|
|
194
|
+
exportChatInviteLink: ApiMethod;
|
|
195
|
+
createChatInviteLink: ApiMethod;
|
|
196
|
+
editChatInviteLink: ApiMethod;
|
|
197
|
+
createChatSubscriptionInviteLink: ApiMethod;
|
|
198
|
+
editChatSubscriptionInviteLink: ApiMethod;
|
|
199
|
+
revokeChatInviteLink: ApiMethod;
|
|
200
|
+
approveChatJoinRequest: ApiMethod;
|
|
201
|
+
declineChatJoinRequest: ApiMethod;
|
|
202
|
+
setChatPhoto: ApiMethod;
|
|
203
|
+
deleteChatPhoto: ApiMethod;
|
|
204
|
+
setChatTitle: ApiMethod;
|
|
205
|
+
setChatDescription: ApiMethod;
|
|
206
|
+
pinChatMessage: ApiMethod;
|
|
207
|
+
unpinChatMessage: ApiMethod;
|
|
208
|
+
unpinAllChatMessages: ApiMethod;
|
|
209
|
+
leaveChat: ApiMethod;
|
|
210
|
+
getChat: ApiMethod;
|
|
211
|
+
getChatAdministrators: ApiMethod;
|
|
212
|
+
getChatMemberCount: ApiMethod;
|
|
213
|
+
getChatMember: ApiMethod;
|
|
214
|
+
setChatStickerSet: ApiMethod;
|
|
215
|
+
deleteChatStickerSet: ApiMethod;
|
|
216
|
+
getForumTopicIconStickers: ApiMethod;
|
|
217
|
+
createForumTopic: ApiMethod;
|
|
218
|
+
editForumTopic: ApiMethod;
|
|
219
|
+
closeForumTopic: ApiMethod;
|
|
220
|
+
reopenForumTopic: ApiMethod;
|
|
221
|
+
deleteForumTopic: ApiMethod;
|
|
222
|
+
unpinAllForumTopicMessages: ApiMethod;
|
|
223
|
+
editGeneralForumTopic: ApiMethod;
|
|
224
|
+
closeGeneralForumTopic: ApiMethod;
|
|
225
|
+
reopenGeneralForumTopic: ApiMethod;
|
|
226
|
+
hideGeneralForumTopic: ApiMethod;
|
|
227
|
+
unhideGeneralForumTopic: ApiMethod;
|
|
228
|
+
unpinAllGeneralForumTopicMessages: ApiMethod;
|
|
229
|
+
answerCallbackQuery: ApiMethod;
|
|
230
|
+
getUserChatBoosts: ApiMethod;
|
|
231
|
+
getBusinessConnection: ApiMethod;
|
|
232
|
+
setMyCommands: ApiMethod;
|
|
233
|
+
deleteMyCommands: ApiMethod;
|
|
234
|
+
getMyCommands: ApiMethod;
|
|
235
|
+
setMyName: ApiMethod;
|
|
236
|
+
getMyName: ApiMethod;
|
|
237
|
+
setMyDescription: ApiMethod;
|
|
238
|
+
getMyDescription: ApiMethod;
|
|
239
|
+
setMyShortDescription: ApiMethod;
|
|
240
|
+
getMyShortDescription: ApiMethod;
|
|
241
|
+
setChatMenuButton: ApiMethod;
|
|
242
|
+
getChatMenuButton: ApiMethod;
|
|
243
|
+
setMyDefaultAdministratorRights: ApiMethod;
|
|
244
|
+
getMyDefaultAdministratorRights: ApiMethod;
|
|
245
|
+
getAvailableGifts: ApiMethod;
|
|
246
|
+
sendGift: ApiMethod;
|
|
247
|
+
giftPremiumSubscription: ApiMethod;
|
|
248
|
+
verifyUser: ApiMethod;
|
|
249
|
+
verifyChat: ApiMethod;
|
|
250
|
+
removeUserVerification: ApiMethod;
|
|
251
|
+
removeChatVerification: ApiMethod;
|
|
252
|
+
readBusinessMessage: ApiMethod;
|
|
253
|
+
deleteBusinessMessages: ApiMethod;
|
|
254
|
+
setBusinessAccountName: ApiMethod;
|
|
255
|
+
setBusinessAccountUsername: ApiMethod;
|
|
256
|
+
setBusinessAccountBio: ApiMethod;
|
|
257
|
+
setBusinessAccountProfilePhoto: ApiMethod;
|
|
258
|
+
removeBusinessAccountProfilePhoto: ApiMethod;
|
|
259
|
+
setBusinessAccountGiftSettings: ApiMethod;
|
|
260
|
+
getBusinessAccountStarBalance: ApiMethod;
|
|
261
|
+
transferBusinessAccountStars: ApiMethod;
|
|
262
|
+
getBusinessAccountGifts: ApiMethod;
|
|
263
|
+
convertGiftToStars: ApiMethod;
|
|
264
|
+
upgradeGift: ApiMethod;
|
|
265
|
+
transferGift: ApiMethod;
|
|
266
|
+
postStory: ApiMethod;
|
|
267
|
+
editStory: ApiMethod;
|
|
268
|
+
deleteStory: ApiMethod;
|
|
269
|
+
editMessageText: ApiMethod;
|
|
270
|
+
editMessageCaption: ApiMethod;
|
|
271
|
+
editMessageMedia: ApiMethod;
|
|
272
|
+
editMessageLiveLocation: ApiMethod;
|
|
273
|
+
stopMessageLiveLocation: ApiMethod;
|
|
274
|
+
editMessageChecklist: ApiMethod;
|
|
275
|
+
editMessageReplyMarkup: ApiMethod;
|
|
276
|
+
stopPoll: ApiMethod;
|
|
277
|
+
approveSuggestedPost: ApiMethod;
|
|
278
|
+
declineSuggestedPost: ApiMethod;
|
|
279
|
+
deleteMessage: ApiMethod;
|
|
280
|
+
deleteMessages: ApiMethod;
|
|
281
|
+
sendSticker: ApiMethod;
|
|
282
|
+
getStickerSet: ApiMethod;
|
|
283
|
+
getCustomEmojiStickers: ApiMethod;
|
|
284
|
+
uploadStickerFile: ApiMethod;
|
|
285
|
+
createNewStickerSet: ApiMethod;
|
|
286
|
+
addStickerToSet: ApiMethod;
|
|
287
|
+
setStickerPositionInSet: ApiMethod;
|
|
288
|
+
deleteStickerFromSet: ApiMethod;
|
|
289
|
+
replaceStickerInSet: ApiMethod;
|
|
290
|
+
setStickerEmojiList: ApiMethod;
|
|
291
|
+
setStickerKeywords: ApiMethod;
|
|
292
|
+
setStickerMaskPosition: ApiMethod;
|
|
293
|
+
setStickerSetTitle: ApiMethod;
|
|
294
|
+
setStickerSetThumbnail: ApiMethod;
|
|
295
|
+
setCustomEmojiStickerSetThumbnail: ApiMethod;
|
|
296
|
+
deleteStickerSet: ApiMethod;
|
|
297
|
+
answerInlineQuery: ApiMethod;
|
|
298
|
+
answerWebAppQuery: ApiMethod;
|
|
299
|
+
savePreparedInlineMessage: ApiMethod;
|
|
300
|
+
sendInvoice: ApiMethod;
|
|
301
|
+
createInvoiceLink: ApiMethod;
|
|
302
|
+
answerShippingQuery: ApiMethod;
|
|
303
|
+
answerPreCheckoutQuery: ApiMethod;
|
|
304
|
+
getMyStarBalance: ApiMethod;
|
|
305
|
+
getStarTransactions: ApiMethod;
|
|
306
|
+
refundStarPayment: ApiMethod;
|
|
307
|
+
editUserStarSubscription: ApiMethod;
|
|
308
|
+
setPassportDataErrors: ApiMethod;
|
|
309
|
+
sendGame: ApiMethod;
|
|
310
|
+
setGameScore: ApiMethod;
|
|
311
|
+
getGameHighScores: ApiMethod;
|
|
312
|
+
};
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/bot-api/types.gen.d.ts
|
|
315
|
+
/**
|
|
316
|
+
* Definition of all Bot API types as an object.
|
|
317
|
+
* Properties are created in the same order as they appear in the docs.
|
|
318
|
+
*/
|
|
319
|
+
declare const types: {
|
|
320
|
+
Update: ApiType;
|
|
321
|
+
WebhookInfo: ApiType;
|
|
322
|
+
User: ApiType;
|
|
323
|
+
Chat: ApiType;
|
|
324
|
+
ChatFullInfo: ApiType;
|
|
325
|
+
Message: ApiType;
|
|
326
|
+
MessageId: ApiType;
|
|
327
|
+
InaccessibleMessage: ApiType;
|
|
328
|
+
MaybeInaccessibleMessage: ApiType;
|
|
329
|
+
MessageEntity: ApiType;
|
|
330
|
+
TextQuote: ApiType;
|
|
331
|
+
ExternalReplyInfo: ApiType;
|
|
332
|
+
ReplyParameters: ApiType;
|
|
333
|
+
MessageOrigin: ApiType;
|
|
334
|
+
MessageOriginUser: ApiType;
|
|
335
|
+
MessageOriginHiddenUser: ApiType;
|
|
336
|
+
MessageOriginChat: ApiType;
|
|
337
|
+
MessageOriginChannel: ApiType;
|
|
338
|
+
PhotoSize: ApiType;
|
|
339
|
+
Animation: ApiType;
|
|
340
|
+
Audio: ApiType;
|
|
341
|
+
Document: ApiType;
|
|
342
|
+
Story: ApiType;
|
|
343
|
+
Video: ApiType;
|
|
344
|
+
VideoNote: ApiType;
|
|
345
|
+
Voice: ApiType;
|
|
346
|
+
PaidMediaInfo: ApiType;
|
|
347
|
+
PaidMedia: ApiType;
|
|
348
|
+
PaidMediaPreview: ApiType;
|
|
349
|
+
PaidMediaPhoto: ApiType;
|
|
350
|
+
PaidMediaVideo: ApiType;
|
|
351
|
+
Contact: ApiType;
|
|
352
|
+
Dice: ApiType;
|
|
353
|
+
PollOption: ApiType;
|
|
354
|
+
InputPollOption: ApiType;
|
|
355
|
+
PollAnswer: ApiType;
|
|
356
|
+
Poll: ApiType;
|
|
357
|
+
ChecklistTask: ApiType;
|
|
358
|
+
Checklist: ApiType;
|
|
359
|
+
InputChecklistTask: ApiType;
|
|
360
|
+
InputChecklist: ApiType;
|
|
361
|
+
ChecklistTasksDone: ApiType;
|
|
362
|
+
ChecklistTasksAdded: ApiType;
|
|
363
|
+
Location: ApiType;
|
|
364
|
+
Venue: ApiType;
|
|
365
|
+
WebAppData: ApiType;
|
|
366
|
+
ProximityAlertTriggered: ApiType;
|
|
367
|
+
MessageAutoDeleteTimerChanged: ApiType;
|
|
368
|
+
ChatBoostAdded: ApiType;
|
|
369
|
+
BackgroundFill: ApiType;
|
|
370
|
+
BackgroundFillSolid: ApiType;
|
|
371
|
+
BackgroundFillGradient: ApiType;
|
|
372
|
+
BackgroundFillFreeformGradient: ApiType;
|
|
373
|
+
BackgroundType: ApiType;
|
|
374
|
+
BackgroundTypeFill: ApiType;
|
|
375
|
+
BackgroundTypeWallpaper: ApiType;
|
|
376
|
+
BackgroundTypePattern: ApiType;
|
|
377
|
+
BackgroundTypeChatTheme: ApiType;
|
|
378
|
+
ChatBackground: ApiType;
|
|
379
|
+
ForumTopicCreated: ApiType;
|
|
380
|
+
ForumTopicClosed: ApiType;
|
|
381
|
+
ForumTopicEdited: ApiType;
|
|
382
|
+
ForumTopicReopened: ApiType;
|
|
383
|
+
GeneralForumTopicHidden: ApiType;
|
|
384
|
+
GeneralForumTopicUnhidden: ApiType;
|
|
385
|
+
SharedUser: ApiType;
|
|
386
|
+
UsersShared: ApiType;
|
|
387
|
+
ChatShared: ApiType;
|
|
388
|
+
WriteAccessAllowed: ApiType;
|
|
389
|
+
VideoChatScheduled: ApiType;
|
|
390
|
+
VideoChatStarted: ApiType;
|
|
391
|
+
VideoChatEnded: ApiType;
|
|
392
|
+
VideoChatParticipantsInvited: ApiType;
|
|
393
|
+
PaidMessagePriceChanged: ApiType;
|
|
394
|
+
DirectMessagePriceChanged: ApiType;
|
|
395
|
+
SuggestedPostApproved: ApiType;
|
|
396
|
+
SuggestedPostApprovalFailed: ApiType;
|
|
397
|
+
SuggestedPostDeclined: ApiType;
|
|
398
|
+
SuggestedPostPaid: ApiType;
|
|
399
|
+
SuggestedPostRefunded: ApiType;
|
|
400
|
+
GiveawayCreated: ApiType;
|
|
401
|
+
Giveaway: ApiType;
|
|
402
|
+
GiveawayWinners: ApiType;
|
|
403
|
+
GiveawayCompleted: ApiType;
|
|
404
|
+
LinkPreviewOptions: ApiType;
|
|
405
|
+
SuggestedPostPrice: ApiType;
|
|
406
|
+
SuggestedPostInfo: ApiType;
|
|
407
|
+
SuggestedPostParameters: ApiType;
|
|
408
|
+
DirectMessagesTopic: ApiType;
|
|
409
|
+
UserProfilePhotos: ApiType;
|
|
410
|
+
File: ApiType;
|
|
411
|
+
WebAppInfo: ApiType;
|
|
412
|
+
ReplyKeyboardMarkup: ApiType;
|
|
413
|
+
KeyboardButton: ApiType;
|
|
414
|
+
KeyboardButtonRequestUsers: ApiType;
|
|
415
|
+
KeyboardButtonRequestChat: ApiType;
|
|
416
|
+
KeyboardButtonPollType: ApiType;
|
|
417
|
+
ReplyKeyboardRemove: ApiType;
|
|
418
|
+
InlineKeyboardMarkup: ApiType;
|
|
419
|
+
InlineKeyboardButton: ApiType;
|
|
420
|
+
LoginUrl: ApiType;
|
|
421
|
+
SwitchInlineQueryChosenChat: ApiType;
|
|
422
|
+
CopyTextButton: ApiType;
|
|
423
|
+
CallbackQuery: ApiType;
|
|
424
|
+
ForceReply: ApiType;
|
|
425
|
+
ChatPhoto: ApiType;
|
|
426
|
+
ChatInviteLink: ApiType;
|
|
427
|
+
ChatAdministratorRights: ApiType;
|
|
428
|
+
ChatMemberUpdated: ApiType;
|
|
429
|
+
ChatMember: ApiType;
|
|
430
|
+
ChatMemberOwner: ApiType;
|
|
431
|
+
ChatMemberAdministrator: ApiType;
|
|
432
|
+
ChatMemberMember: ApiType;
|
|
433
|
+
ChatMemberRestricted: ApiType;
|
|
434
|
+
ChatMemberLeft: ApiType;
|
|
435
|
+
ChatMemberBanned: ApiType;
|
|
436
|
+
ChatJoinRequest: ApiType;
|
|
437
|
+
ChatPermissions: ApiType;
|
|
438
|
+
Birthdate: ApiType;
|
|
439
|
+
BusinessIntro: ApiType;
|
|
440
|
+
BusinessLocation: ApiType;
|
|
441
|
+
BusinessOpeningHoursInterval: ApiType;
|
|
442
|
+
BusinessOpeningHours: ApiType;
|
|
443
|
+
StoryAreaPosition: ApiType;
|
|
444
|
+
LocationAddress: ApiType;
|
|
445
|
+
StoryAreaType: ApiType;
|
|
446
|
+
StoryAreaTypeLocation: ApiType;
|
|
447
|
+
StoryAreaTypeSuggestedReaction: ApiType;
|
|
448
|
+
StoryAreaTypeLink: ApiType;
|
|
449
|
+
StoryAreaTypeWeather: ApiType;
|
|
450
|
+
StoryAreaTypeUniqueGift: ApiType;
|
|
451
|
+
StoryArea: ApiType;
|
|
452
|
+
ChatLocation: ApiType;
|
|
453
|
+
ReactionType: ApiType;
|
|
454
|
+
ReactionTypeEmoji: ApiType;
|
|
455
|
+
ReactionTypeCustomEmoji: ApiType;
|
|
456
|
+
ReactionTypePaid: ApiType;
|
|
457
|
+
ReactionCount: ApiType;
|
|
458
|
+
MessageReactionUpdated: ApiType;
|
|
459
|
+
MessageReactionCountUpdated: ApiType;
|
|
460
|
+
ForumTopic: ApiType;
|
|
461
|
+
Gift: ApiType;
|
|
462
|
+
Gifts: ApiType;
|
|
463
|
+
UniqueGiftModel: ApiType;
|
|
464
|
+
UniqueGiftSymbol: ApiType;
|
|
465
|
+
UniqueGiftBackdropColors: ApiType;
|
|
466
|
+
UniqueGiftBackdrop: ApiType;
|
|
467
|
+
UniqueGift: ApiType;
|
|
468
|
+
GiftInfo: ApiType;
|
|
469
|
+
UniqueGiftInfo: ApiType;
|
|
470
|
+
OwnedGift: ApiType;
|
|
471
|
+
OwnedGiftRegular: ApiType;
|
|
472
|
+
OwnedGiftUnique: ApiType;
|
|
473
|
+
OwnedGifts: ApiType;
|
|
474
|
+
AcceptedGiftTypes: ApiType;
|
|
475
|
+
StarAmount: ApiType;
|
|
476
|
+
BotCommand: ApiType;
|
|
477
|
+
BotCommandScope: ApiType;
|
|
478
|
+
BotCommandScopeDefault: ApiType;
|
|
479
|
+
BotCommandScopeAllPrivateChats: ApiType;
|
|
480
|
+
BotCommandScopeAllGroupChats: ApiType;
|
|
481
|
+
BotCommandScopeAllChatAdministrators: ApiType;
|
|
482
|
+
BotCommandScopeChat: ApiType;
|
|
483
|
+
BotCommandScopeChatAdministrators: ApiType;
|
|
484
|
+
BotCommandScopeChatMember: ApiType;
|
|
485
|
+
BotName: ApiType;
|
|
486
|
+
BotDescription: ApiType;
|
|
487
|
+
BotShortDescription: ApiType;
|
|
488
|
+
MenuButton: ApiType;
|
|
489
|
+
MenuButtonCommands: ApiType;
|
|
490
|
+
MenuButtonWebApp: ApiType;
|
|
491
|
+
MenuButtonDefault: ApiType;
|
|
492
|
+
ChatBoostSource: ApiType;
|
|
493
|
+
ChatBoostSourcePremium: ApiType;
|
|
494
|
+
ChatBoostSourceGiftCode: ApiType;
|
|
495
|
+
ChatBoostSourceGiveaway: ApiType;
|
|
496
|
+
ChatBoost: ApiType;
|
|
497
|
+
ChatBoostUpdated: ApiType;
|
|
498
|
+
ChatBoostRemoved: ApiType;
|
|
499
|
+
UserChatBoosts: ApiType;
|
|
500
|
+
BusinessBotRights: ApiType;
|
|
501
|
+
BusinessConnection: ApiType;
|
|
502
|
+
BusinessMessagesDeleted: ApiType;
|
|
503
|
+
ResponseParameters: ApiType;
|
|
504
|
+
InputMedia: ApiType;
|
|
505
|
+
InputMediaPhoto: ApiType;
|
|
506
|
+
InputMediaVideo: ApiType;
|
|
507
|
+
InputMediaAnimation: ApiType;
|
|
508
|
+
InputMediaAudio: ApiType;
|
|
509
|
+
InputMediaDocument: ApiType;
|
|
510
|
+
InputPaidMedia: ApiType;
|
|
511
|
+
InputPaidMediaPhoto: ApiType;
|
|
512
|
+
InputPaidMediaVideo: ApiType;
|
|
513
|
+
InputProfilePhoto: ApiType;
|
|
514
|
+
InputProfilePhotoStatic: ApiType;
|
|
515
|
+
InputProfilePhotoAnimated: ApiType;
|
|
516
|
+
InputStoryContent: ApiType;
|
|
517
|
+
InputStoryContentPhoto: ApiType;
|
|
518
|
+
InputStoryContentVideo: ApiType;
|
|
519
|
+
Sticker: ApiType;
|
|
520
|
+
StickerSet: ApiType;
|
|
521
|
+
MaskPosition: ApiType;
|
|
522
|
+
InputSticker: ApiType;
|
|
523
|
+
InlineQuery: ApiType;
|
|
524
|
+
InlineQueryResultsButton: ApiType;
|
|
525
|
+
InlineQueryResult: ApiType;
|
|
526
|
+
InlineQueryResultArticle: ApiType;
|
|
527
|
+
InlineQueryResultPhoto: ApiType;
|
|
528
|
+
InlineQueryResultGif: ApiType;
|
|
529
|
+
InlineQueryResultMpeg4Gif: ApiType;
|
|
530
|
+
InlineQueryResultVideo: ApiType;
|
|
531
|
+
InlineQueryResultAudio: ApiType;
|
|
532
|
+
InlineQueryResultVoice: ApiType;
|
|
533
|
+
InlineQueryResultDocument: ApiType;
|
|
534
|
+
InlineQueryResultLocation: ApiType;
|
|
535
|
+
InlineQueryResultVenue: ApiType;
|
|
536
|
+
InlineQueryResultContact: ApiType;
|
|
537
|
+
InlineQueryResultGame: ApiType;
|
|
538
|
+
InlineQueryResultCachedPhoto: ApiType;
|
|
539
|
+
InlineQueryResultCachedGif: ApiType;
|
|
540
|
+
InlineQueryResultCachedMpeg4Gif: ApiType;
|
|
541
|
+
InlineQueryResultCachedSticker: ApiType;
|
|
542
|
+
InlineQueryResultCachedDocument: ApiType;
|
|
543
|
+
InlineQueryResultCachedVideo: ApiType;
|
|
544
|
+
InlineQueryResultCachedVoice: ApiType;
|
|
545
|
+
InlineQueryResultCachedAudio: ApiType;
|
|
546
|
+
InputMessageContent: ApiType;
|
|
547
|
+
InputTextMessageContent: ApiType;
|
|
548
|
+
InputLocationMessageContent: ApiType;
|
|
549
|
+
InputVenueMessageContent: ApiType;
|
|
550
|
+
InputContactMessageContent: ApiType;
|
|
551
|
+
InputInvoiceMessageContent: ApiType;
|
|
552
|
+
ChosenInlineResult: ApiType;
|
|
553
|
+
SentWebAppMessage: ApiType;
|
|
554
|
+
PreparedInlineMessage: ApiType;
|
|
555
|
+
LabeledPrice: ApiType;
|
|
556
|
+
Invoice: ApiType;
|
|
557
|
+
ShippingAddress: ApiType;
|
|
558
|
+
OrderInfo: ApiType;
|
|
559
|
+
ShippingOption: ApiType;
|
|
560
|
+
SuccessfulPayment: ApiType;
|
|
561
|
+
RefundedPayment: ApiType;
|
|
562
|
+
ShippingQuery: ApiType;
|
|
563
|
+
PreCheckoutQuery: ApiType;
|
|
564
|
+
PaidMediaPurchased: ApiType;
|
|
565
|
+
RevenueWithdrawalState: ApiType;
|
|
566
|
+
RevenueWithdrawalStatePending: ApiType;
|
|
567
|
+
RevenueWithdrawalStateSucceeded: ApiType;
|
|
568
|
+
RevenueWithdrawalStateFailed: ApiType;
|
|
569
|
+
AffiliateInfo: ApiType;
|
|
570
|
+
TransactionPartner: ApiType;
|
|
571
|
+
TransactionPartnerUser: ApiType;
|
|
572
|
+
TransactionPartnerChat: ApiType;
|
|
573
|
+
TransactionPartnerAffiliateProgram: ApiType;
|
|
574
|
+
TransactionPartnerFragment: ApiType;
|
|
575
|
+
TransactionPartnerTelegramAds: ApiType;
|
|
576
|
+
TransactionPartnerTelegramApi: ApiType;
|
|
577
|
+
TransactionPartnerOther: ApiType;
|
|
578
|
+
StarTransaction: ApiType;
|
|
579
|
+
StarTransactions: ApiType;
|
|
580
|
+
PassportData: ApiType;
|
|
581
|
+
PassportFile: ApiType;
|
|
582
|
+
EncryptedPassportElement: ApiType;
|
|
583
|
+
EncryptedCredentials: ApiType;
|
|
584
|
+
PassportElementError: ApiType;
|
|
585
|
+
PassportElementErrorDataField: ApiType;
|
|
586
|
+
PassportElementErrorFrontSide: ApiType;
|
|
587
|
+
PassportElementErrorReverseSide: ApiType;
|
|
588
|
+
PassportElementErrorSelfie: ApiType;
|
|
589
|
+
PassportElementErrorFile: ApiType;
|
|
590
|
+
PassportElementErrorFiles: ApiType;
|
|
591
|
+
PassportElementErrorTranslationFile: ApiType;
|
|
592
|
+
PassportElementErrorTranslationFiles: ApiType;
|
|
593
|
+
PassportElementErrorUnspecified: ApiType;
|
|
594
|
+
Game: ApiType;
|
|
595
|
+
CallbackGame: ApiType;
|
|
596
|
+
GameHighScore: ApiType;
|
|
597
|
+
};
|
|
598
|
+
//#endregion
|
|
599
|
+
export { ApiMethod, ApiType, ApiTypeObject, ApiTypeOneOf, Description, FieldOrParam, ValueType, ValueTypeApiType, ValueTypeArray, ValueTypeBoolean, ValueTypeFloat, ValueTypeInputFile, ValueTypeInteger32, ValueTypeInteger52, ValueTypeString, ValueTypeUnion, methods, types };
|