@grom.js/bot-api-spec 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/format.d.ts +149 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +2 -0
- package/dist/format.js.map +1 -0
- package/dist/index.d.ts +3 -601
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -21765
- package/dist/index.js.map +1 -0
- package/dist/methods.gen.d.ts +175 -0
- package/dist/methods.gen.d.ts.map +1 -0
- package/dist/methods.gen.js +12380 -0
- package/dist/methods.gen.js.map +1 -0
- package/dist/types.gen.d.ts +293 -0
- package/dist/types.gen.d.ts.map +1 -0
- package/dist/types.gen.js +19804 -0
- package/dist/types.gen.js.map +1 -0
- package/package.json +30 -21
- package/src/format.ts +188 -0
- package/src/index.ts +2 -0
- package/src/methods.gen.ts +12544 -0
- package/src/types.gen.ts +20087 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module contains all types specified in the Bot API.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type { ApiType } from './format.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Definition of all Bot API types as an object.
|
|
9
|
+
* Properties are created in the same order as they appear in the docs.
|
|
10
|
+
*/
|
|
11
|
+
export declare const types: {
|
|
12
|
+
Update: ApiType;
|
|
13
|
+
WebhookInfo: ApiType;
|
|
14
|
+
User: ApiType;
|
|
15
|
+
Chat: ApiType;
|
|
16
|
+
ChatFullInfo: ApiType;
|
|
17
|
+
Message: ApiType;
|
|
18
|
+
MessageId: ApiType;
|
|
19
|
+
InaccessibleMessage: ApiType;
|
|
20
|
+
MaybeInaccessibleMessage: ApiType;
|
|
21
|
+
MessageEntity: ApiType;
|
|
22
|
+
TextQuote: ApiType;
|
|
23
|
+
ExternalReplyInfo: ApiType;
|
|
24
|
+
ReplyParameters: ApiType;
|
|
25
|
+
MessageOrigin: ApiType;
|
|
26
|
+
MessageOriginUser: ApiType;
|
|
27
|
+
MessageOriginHiddenUser: ApiType;
|
|
28
|
+
MessageOriginChat: ApiType;
|
|
29
|
+
MessageOriginChannel: ApiType;
|
|
30
|
+
PhotoSize: ApiType;
|
|
31
|
+
Animation: ApiType;
|
|
32
|
+
Audio: ApiType;
|
|
33
|
+
Document: ApiType;
|
|
34
|
+
Story: ApiType;
|
|
35
|
+
Video: ApiType;
|
|
36
|
+
VideoNote: ApiType;
|
|
37
|
+
Voice: ApiType;
|
|
38
|
+
PaidMediaInfo: ApiType;
|
|
39
|
+
PaidMedia: ApiType;
|
|
40
|
+
PaidMediaPreview: ApiType;
|
|
41
|
+
PaidMediaPhoto: ApiType;
|
|
42
|
+
PaidMediaVideo: ApiType;
|
|
43
|
+
Contact: ApiType;
|
|
44
|
+
Dice: ApiType;
|
|
45
|
+
PollOption: ApiType;
|
|
46
|
+
InputPollOption: ApiType;
|
|
47
|
+
PollAnswer: ApiType;
|
|
48
|
+
Poll: ApiType;
|
|
49
|
+
ChecklistTask: ApiType;
|
|
50
|
+
Checklist: ApiType;
|
|
51
|
+
InputChecklistTask: ApiType;
|
|
52
|
+
InputChecklist: ApiType;
|
|
53
|
+
ChecklistTasksDone: ApiType;
|
|
54
|
+
ChecklistTasksAdded: ApiType;
|
|
55
|
+
Location: ApiType;
|
|
56
|
+
Venue: ApiType;
|
|
57
|
+
WebAppData: ApiType;
|
|
58
|
+
ProximityAlertTriggered: ApiType;
|
|
59
|
+
MessageAutoDeleteTimerChanged: ApiType;
|
|
60
|
+
ChatBoostAdded: ApiType;
|
|
61
|
+
BackgroundFill: ApiType;
|
|
62
|
+
BackgroundFillSolid: ApiType;
|
|
63
|
+
BackgroundFillGradient: ApiType;
|
|
64
|
+
BackgroundFillFreeformGradient: ApiType;
|
|
65
|
+
BackgroundType: ApiType;
|
|
66
|
+
BackgroundTypeFill: ApiType;
|
|
67
|
+
BackgroundTypeWallpaper: ApiType;
|
|
68
|
+
BackgroundTypePattern: ApiType;
|
|
69
|
+
BackgroundTypeChatTheme: ApiType;
|
|
70
|
+
ChatBackground: ApiType;
|
|
71
|
+
ForumTopicCreated: ApiType;
|
|
72
|
+
ForumTopicClosed: ApiType;
|
|
73
|
+
ForumTopicEdited: ApiType;
|
|
74
|
+
ForumTopicReopened: ApiType;
|
|
75
|
+
GeneralForumTopicHidden: ApiType;
|
|
76
|
+
GeneralForumTopicUnhidden: ApiType;
|
|
77
|
+
SharedUser: ApiType;
|
|
78
|
+
UsersShared: ApiType;
|
|
79
|
+
ChatShared: ApiType;
|
|
80
|
+
WriteAccessAllowed: ApiType;
|
|
81
|
+
VideoChatScheduled: ApiType;
|
|
82
|
+
VideoChatStarted: ApiType;
|
|
83
|
+
VideoChatEnded: ApiType;
|
|
84
|
+
VideoChatParticipantsInvited: ApiType;
|
|
85
|
+
PaidMessagePriceChanged: ApiType;
|
|
86
|
+
DirectMessagePriceChanged: ApiType;
|
|
87
|
+
SuggestedPostApproved: ApiType;
|
|
88
|
+
SuggestedPostApprovalFailed: ApiType;
|
|
89
|
+
SuggestedPostDeclined: ApiType;
|
|
90
|
+
SuggestedPostPaid: ApiType;
|
|
91
|
+
SuggestedPostRefunded: ApiType;
|
|
92
|
+
GiveawayCreated: ApiType;
|
|
93
|
+
Giveaway: ApiType;
|
|
94
|
+
GiveawayWinners: ApiType;
|
|
95
|
+
GiveawayCompleted: ApiType;
|
|
96
|
+
LinkPreviewOptions: ApiType;
|
|
97
|
+
SuggestedPostPrice: ApiType;
|
|
98
|
+
SuggestedPostInfo: ApiType;
|
|
99
|
+
SuggestedPostParameters: ApiType;
|
|
100
|
+
DirectMessagesTopic: ApiType;
|
|
101
|
+
UserProfilePhotos: ApiType;
|
|
102
|
+
File: ApiType;
|
|
103
|
+
WebAppInfo: ApiType;
|
|
104
|
+
ReplyKeyboardMarkup: ApiType;
|
|
105
|
+
KeyboardButton: ApiType;
|
|
106
|
+
KeyboardButtonRequestUsers: ApiType;
|
|
107
|
+
KeyboardButtonRequestChat: ApiType;
|
|
108
|
+
KeyboardButtonPollType: ApiType;
|
|
109
|
+
ReplyKeyboardRemove: ApiType;
|
|
110
|
+
InlineKeyboardMarkup: ApiType;
|
|
111
|
+
InlineKeyboardButton: ApiType;
|
|
112
|
+
LoginUrl: ApiType;
|
|
113
|
+
SwitchInlineQueryChosenChat: ApiType;
|
|
114
|
+
CopyTextButton: ApiType;
|
|
115
|
+
CallbackQuery: ApiType;
|
|
116
|
+
ForceReply: ApiType;
|
|
117
|
+
ChatPhoto: ApiType;
|
|
118
|
+
ChatInviteLink: ApiType;
|
|
119
|
+
ChatAdministratorRights: ApiType;
|
|
120
|
+
ChatMemberUpdated: ApiType;
|
|
121
|
+
ChatMember: ApiType;
|
|
122
|
+
ChatMemberOwner: ApiType;
|
|
123
|
+
ChatMemberAdministrator: ApiType;
|
|
124
|
+
ChatMemberMember: ApiType;
|
|
125
|
+
ChatMemberRestricted: ApiType;
|
|
126
|
+
ChatMemberLeft: ApiType;
|
|
127
|
+
ChatMemberBanned: ApiType;
|
|
128
|
+
ChatJoinRequest: ApiType;
|
|
129
|
+
ChatPermissions: ApiType;
|
|
130
|
+
Birthdate: ApiType;
|
|
131
|
+
BusinessIntro: ApiType;
|
|
132
|
+
BusinessLocation: ApiType;
|
|
133
|
+
BusinessOpeningHoursInterval: ApiType;
|
|
134
|
+
BusinessOpeningHours: ApiType;
|
|
135
|
+
UserRating: ApiType;
|
|
136
|
+
StoryAreaPosition: ApiType;
|
|
137
|
+
LocationAddress: ApiType;
|
|
138
|
+
StoryAreaType: ApiType;
|
|
139
|
+
StoryAreaTypeLocation: ApiType;
|
|
140
|
+
StoryAreaTypeSuggestedReaction: ApiType;
|
|
141
|
+
StoryAreaTypeLink: ApiType;
|
|
142
|
+
StoryAreaTypeWeather: ApiType;
|
|
143
|
+
StoryAreaTypeUniqueGift: ApiType;
|
|
144
|
+
StoryArea: ApiType;
|
|
145
|
+
ChatLocation: ApiType;
|
|
146
|
+
ReactionType: ApiType;
|
|
147
|
+
ReactionTypeEmoji: ApiType;
|
|
148
|
+
ReactionTypeCustomEmoji: ApiType;
|
|
149
|
+
ReactionTypePaid: ApiType;
|
|
150
|
+
ReactionCount: ApiType;
|
|
151
|
+
MessageReactionUpdated: ApiType;
|
|
152
|
+
MessageReactionCountUpdated: ApiType;
|
|
153
|
+
ForumTopic: ApiType;
|
|
154
|
+
GiftBackground: ApiType;
|
|
155
|
+
Gift: ApiType;
|
|
156
|
+
Gifts: ApiType;
|
|
157
|
+
UniqueGiftModel: ApiType;
|
|
158
|
+
UniqueGiftSymbol: ApiType;
|
|
159
|
+
UniqueGiftBackdropColors: ApiType;
|
|
160
|
+
UniqueGiftBackdrop: ApiType;
|
|
161
|
+
UniqueGiftColors: ApiType;
|
|
162
|
+
UniqueGift: ApiType;
|
|
163
|
+
GiftInfo: ApiType;
|
|
164
|
+
UniqueGiftInfo: ApiType;
|
|
165
|
+
OwnedGift: ApiType;
|
|
166
|
+
OwnedGiftRegular: ApiType;
|
|
167
|
+
OwnedGiftUnique: ApiType;
|
|
168
|
+
OwnedGifts: ApiType;
|
|
169
|
+
AcceptedGiftTypes: ApiType;
|
|
170
|
+
StarAmount: ApiType;
|
|
171
|
+
BotCommand: ApiType;
|
|
172
|
+
BotCommandScope: ApiType;
|
|
173
|
+
BotCommandScopeDefault: ApiType;
|
|
174
|
+
BotCommandScopeAllPrivateChats: ApiType;
|
|
175
|
+
BotCommandScopeAllGroupChats: ApiType;
|
|
176
|
+
BotCommandScopeAllChatAdministrators: ApiType;
|
|
177
|
+
BotCommandScopeChat: ApiType;
|
|
178
|
+
BotCommandScopeChatAdministrators: ApiType;
|
|
179
|
+
BotCommandScopeChatMember: ApiType;
|
|
180
|
+
BotName: ApiType;
|
|
181
|
+
BotDescription: ApiType;
|
|
182
|
+
BotShortDescription: ApiType;
|
|
183
|
+
MenuButton: ApiType;
|
|
184
|
+
MenuButtonCommands: ApiType;
|
|
185
|
+
MenuButtonWebApp: ApiType;
|
|
186
|
+
MenuButtonDefault: ApiType;
|
|
187
|
+
ChatBoostSource: ApiType;
|
|
188
|
+
ChatBoostSourcePremium: ApiType;
|
|
189
|
+
ChatBoostSourceGiftCode: ApiType;
|
|
190
|
+
ChatBoostSourceGiveaway: ApiType;
|
|
191
|
+
ChatBoost: ApiType;
|
|
192
|
+
ChatBoostUpdated: ApiType;
|
|
193
|
+
ChatBoostRemoved: ApiType;
|
|
194
|
+
UserChatBoosts: ApiType;
|
|
195
|
+
BusinessBotRights: ApiType;
|
|
196
|
+
BusinessConnection: ApiType;
|
|
197
|
+
BusinessMessagesDeleted: ApiType;
|
|
198
|
+
ResponseParameters: ApiType;
|
|
199
|
+
InputMedia: ApiType;
|
|
200
|
+
InputMediaPhoto: ApiType;
|
|
201
|
+
InputMediaVideo: ApiType;
|
|
202
|
+
InputMediaAnimation: ApiType;
|
|
203
|
+
InputMediaAudio: ApiType;
|
|
204
|
+
InputMediaDocument: ApiType;
|
|
205
|
+
InputPaidMedia: ApiType;
|
|
206
|
+
InputPaidMediaPhoto: ApiType;
|
|
207
|
+
InputPaidMediaVideo: ApiType;
|
|
208
|
+
InputProfilePhoto: ApiType;
|
|
209
|
+
InputProfilePhotoStatic: ApiType;
|
|
210
|
+
InputProfilePhotoAnimated: ApiType;
|
|
211
|
+
InputStoryContent: ApiType;
|
|
212
|
+
InputStoryContentPhoto: ApiType;
|
|
213
|
+
InputStoryContentVideo: ApiType;
|
|
214
|
+
Sticker: ApiType;
|
|
215
|
+
StickerSet: ApiType;
|
|
216
|
+
MaskPosition: ApiType;
|
|
217
|
+
InputSticker: ApiType;
|
|
218
|
+
InlineQuery: ApiType;
|
|
219
|
+
InlineQueryResultsButton: ApiType;
|
|
220
|
+
InlineQueryResult: ApiType;
|
|
221
|
+
InlineQueryResultArticle: ApiType;
|
|
222
|
+
InlineQueryResultPhoto: ApiType;
|
|
223
|
+
InlineQueryResultGif: ApiType;
|
|
224
|
+
InlineQueryResultMpeg4Gif: ApiType;
|
|
225
|
+
InlineQueryResultVideo: ApiType;
|
|
226
|
+
InlineQueryResultAudio: ApiType;
|
|
227
|
+
InlineQueryResultVoice: ApiType;
|
|
228
|
+
InlineQueryResultDocument: ApiType;
|
|
229
|
+
InlineQueryResultLocation: ApiType;
|
|
230
|
+
InlineQueryResultVenue: ApiType;
|
|
231
|
+
InlineQueryResultContact: ApiType;
|
|
232
|
+
InlineQueryResultGame: ApiType;
|
|
233
|
+
InlineQueryResultCachedPhoto: ApiType;
|
|
234
|
+
InlineQueryResultCachedGif: ApiType;
|
|
235
|
+
InlineQueryResultCachedMpeg4Gif: ApiType;
|
|
236
|
+
InlineQueryResultCachedSticker: ApiType;
|
|
237
|
+
InlineQueryResultCachedDocument: ApiType;
|
|
238
|
+
InlineQueryResultCachedVideo: ApiType;
|
|
239
|
+
InlineQueryResultCachedVoice: ApiType;
|
|
240
|
+
InlineQueryResultCachedAudio: ApiType;
|
|
241
|
+
InputMessageContent: ApiType;
|
|
242
|
+
InputTextMessageContent: ApiType;
|
|
243
|
+
InputLocationMessageContent: ApiType;
|
|
244
|
+
InputVenueMessageContent: ApiType;
|
|
245
|
+
InputContactMessageContent: ApiType;
|
|
246
|
+
InputInvoiceMessageContent: ApiType;
|
|
247
|
+
ChosenInlineResult: ApiType;
|
|
248
|
+
SentWebAppMessage: ApiType;
|
|
249
|
+
PreparedInlineMessage: ApiType;
|
|
250
|
+
LabeledPrice: ApiType;
|
|
251
|
+
Invoice: ApiType;
|
|
252
|
+
ShippingAddress: ApiType;
|
|
253
|
+
OrderInfo: ApiType;
|
|
254
|
+
ShippingOption: ApiType;
|
|
255
|
+
SuccessfulPayment: ApiType;
|
|
256
|
+
RefundedPayment: ApiType;
|
|
257
|
+
ShippingQuery: ApiType;
|
|
258
|
+
PreCheckoutQuery: ApiType;
|
|
259
|
+
PaidMediaPurchased: ApiType;
|
|
260
|
+
RevenueWithdrawalState: ApiType;
|
|
261
|
+
RevenueWithdrawalStatePending: ApiType;
|
|
262
|
+
RevenueWithdrawalStateSucceeded: ApiType;
|
|
263
|
+
RevenueWithdrawalStateFailed: ApiType;
|
|
264
|
+
AffiliateInfo: ApiType;
|
|
265
|
+
TransactionPartner: ApiType;
|
|
266
|
+
TransactionPartnerUser: ApiType;
|
|
267
|
+
TransactionPartnerChat: ApiType;
|
|
268
|
+
TransactionPartnerAffiliateProgram: ApiType;
|
|
269
|
+
TransactionPartnerFragment: ApiType;
|
|
270
|
+
TransactionPartnerTelegramAds: ApiType;
|
|
271
|
+
TransactionPartnerTelegramApi: ApiType;
|
|
272
|
+
TransactionPartnerOther: ApiType;
|
|
273
|
+
StarTransaction: ApiType;
|
|
274
|
+
StarTransactions: ApiType;
|
|
275
|
+
PassportData: ApiType;
|
|
276
|
+
PassportFile: ApiType;
|
|
277
|
+
EncryptedPassportElement: ApiType;
|
|
278
|
+
EncryptedCredentials: ApiType;
|
|
279
|
+
PassportElementError: ApiType;
|
|
280
|
+
PassportElementErrorDataField: ApiType;
|
|
281
|
+
PassportElementErrorFrontSide: ApiType;
|
|
282
|
+
PassportElementErrorReverseSide: ApiType;
|
|
283
|
+
PassportElementErrorSelfie: ApiType;
|
|
284
|
+
PassportElementErrorFile: ApiType;
|
|
285
|
+
PassportElementErrorFiles: ApiType;
|
|
286
|
+
PassportElementErrorTranslationFile: ApiType;
|
|
287
|
+
PassportElementErrorTranslationFiles: ApiType;
|
|
288
|
+
PassportElementErrorUnspecified: ApiType;
|
|
289
|
+
Game: ApiType;
|
|
290
|
+
CallbackGame: ApiType;
|
|
291
|
+
GameHighScore: ApiType;
|
|
292
|
+
};
|
|
293
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../src/types.gen.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAm1mB1C;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyRjB,CAAA"}
|