@core-ease/telegram-kit 3.0.1
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 +21 -0
- package/README.md +299 -0
- package/dist/animation/index.d.mts +4 -0
- package/dist/animation/index.d.ts +4 -0
- package/dist/animation/index.js +2413 -0
- package/dist/animation/index.mjs +5 -0
- package/dist/animation/lottie/index.d.mts +10 -0
- package/dist/animation/lottie/index.d.ts +10 -0
- package/dist/animation/lottie/index.js +2313 -0
- package/dist/animation/lottie/index.mjs +4 -0
- package/dist/animation/tgs/index.d.mts +18 -0
- package/dist/animation/tgs/index.d.ts +18 -0
- package/dist/animation/tgs/index.js +2402 -0
- package/dist/animation/tgs/index.mjs +4 -0
- package/dist/bot/index.d.mts +477 -0
- package/dist/bot/index.d.ts +477 -0
- package/dist/bot/index.js +870 -0
- package/dist/bot/index.mjs +847 -0
- package/dist/bot-D8BnLWIi.d.mts +2041 -0
- package/dist/bot-D8BnLWIi.d.ts +2041 -0
- package/dist/browser.global.js +23 -0
- package/dist/chunk-7AARTHNW.mjs +40 -0
- package/dist/chunk-7CVYPKAL.mjs +15 -0
- package/dist/chunk-B3PWALX5.mjs +4418 -0
- package/dist/chunk-BQEUEAVK.mjs +2262 -0
- package/dist/chunk-FPWYSKK2.mjs +3089 -0
- package/dist/chunk-JXK5HCDV.mjs +254 -0
- package/dist/chunk-OMH2JGOH.mjs +88 -0
- package/dist/chunk-PXO36YTU.mjs +38 -0
- package/dist/core/index.d.mts +151 -0
- package/dist/core/index.d.ts +151 -0
- package/dist/core/index.js +3837 -0
- package/dist/core/index.mjs +495 -0
- package/dist/dev/index.d.mts +77 -0
- package/dist/dev/index.d.ts +77 -0
- package/dist/dev/index.js +3214 -0
- package/dist/dev/index.mjs +151 -0
- package/dist/engine-BDm1_hzn.d.mts +382 -0
- package/dist/engine-BDm1_hzn.d.ts +382 -0
- package/dist/format/index.d.mts +61 -0
- package/dist/format/index.d.ts +61 -0
- package/dist/format/index.js +121 -0
- package/dist/format/index.mjs +112 -0
- package/dist/hooks/index.d.mts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4234 -0
- package/dist/hooks/index.mjs +3 -0
- package/dist/hooks-C5Per70R.d.mts +1066 -0
- package/dist/hooks-C5Per70R.d.ts +1066 -0
- package/dist/index.d.mts +849 -0
- package/dist/index.d.ts +849 -0
- package/dist/index.js +5026 -0
- package/dist/index.mjs +478 -0
- package/dist/keyboards/index.d.mts +50 -0
- package/dist/keyboards/index.d.ts +50 -0
- package/dist/keyboards/index.js +127 -0
- package/dist/keyboards/index.mjs +124 -0
- package/dist/links/index.d.mts +53 -0
- package/dist/links/index.d.ts +53 -0
- package/dist/links/index.js +139 -0
- package/dist/links/index.mjs +133 -0
- package/dist/lottie/index.d.mts +3 -0
- package/dist/lottie/index.d.ts +3 -0
- package/dist/lottie/index.js +2313 -0
- package/dist/lottie/index.mjs +4 -0
- package/dist/qr/index.d.mts +75 -0
- package/dist/qr/index.d.ts +75 -0
- package/dist/qr/index.js +983 -0
- package/dist/qr/index.mjs +946 -0
- package/dist/sdk/index.d.mts +322 -0
- package/dist/sdk/index.d.ts +322 -0
- package/dist/sdk/index.js +3138 -0
- package/dist/sdk/index.mjs +2 -0
- package/dist/server/index.d.mts +28 -0
- package/dist/server/index.d.ts +28 -0
- package/dist/server/index.js +254 -0
- package/dist/server/index.mjs +246 -0
- package/dist/tgs/index.d.mts +3 -0
- package/dist/tgs/index.d.ts +3 -0
- package/dist/tgs/index.js +2402 -0
- package/dist/tgs/index.mjs +4 -0
- package/dist/webapp-B-3_74nK.d.mts +842 -0
- package/dist/webapp-B-3_74nK.d.ts +842 -0
- package/dist/webapp-BDi9q3-a.d.mts +42 -0
- package/dist/webapp-YvmwFYUQ.d.ts +42 -0
- package/package.json +165 -0
|
@@ -0,0 +1,870 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
+
|
|
23
|
+
// src/types/bot.ts
|
|
24
|
+
var TelegramApiError = class extends Error {
|
|
25
|
+
constructor(errorCode, description, parameters) {
|
|
26
|
+
super(`Telegram API error ${errorCode}: ${description}`);
|
|
27
|
+
this.errorCode = errorCode;
|
|
28
|
+
this.description = description;
|
|
29
|
+
this.parameters = parameters;
|
|
30
|
+
this.name = "TelegramApiError";
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// src/_internal/bot/client.ts
|
|
35
|
+
var TelegramBot = class {
|
|
36
|
+
constructor(options) {
|
|
37
|
+
const { token, apiBase = "https://api.telegram.org", timeout = 3e4 } = options;
|
|
38
|
+
this.apiBase = `${apiBase}/bot${token}`;
|
|
39
|
+
this.timeout = timeout;
|
|
40
|
+
}
|
|
41
|
+
async request(method, params) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const url = `${this.apiBase}/${method}`;
|
|
44
|
+
const controller = new AbortController();
|
|
45
|
+
const timer = setTimeout(() => controller.abort(), this.timeout);
|
|
46
|
+
try {
|
|
47
|
+
const res = await fetch(url, {
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: { "Content-Type": "application/json" },
|
|
50
|
+
body: params != null ? JSON.stringify(params) : void 0,
|
|
51
|
+
signal: controller.signal
|
|
52
|
+
});
|
|
53
|
+
const data = await res.json();
|
|
54
|
+
if (!data.ok) {
|
|
55
|
+
throw new TelegramApiError(
|
|
56
|
+
(_a = data.error_code) != null ? _a : res.status,
|
|
57
|
+
(_b = data.description) != null ? _b : "Unknown error",
|
|
58
|
+
data.parameters
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
return data.result;
|
|
62
|
+
} finally {
|
|
63
|
+
clearTimeout(timer);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
getUpdates(params) {
|
|
67
|
+
return this.request("getUpdates", params);
|
|
68
|
+
}
|
|
69
|
+
setWebhook(params) {
|
|
70
|
+
return this.request("setWebhook", params);
|
|
71
|
+
}
|
|
72
|
+
deleteWebhook(params) {
|
|
73
|
+
return this.request("deleteWebhook", params);
|
|
74
|
+
}
|
|
75
|
+
getWebhookInfo() {
|
|
76
|
+
return this.request("getWebhookInfo");
|
|
77
|
+
}
|
|
78
|
+
getMe() {
|
|
79
|
+
return this.request("getMe");
|
|
80
|
+
}
|
|
81
|
+
logOut() {
|
|
82
|
+
return this.request("logOut");
|
|
83
|
+
}
|
|
84
|
+
close() {
|
|
85
|
+
return this.request("close");
|
|
86
|
+
}
|
|
87
|
+
setMyDescription(params) {
|
|
88
|
+
return this.request("setMyDescription", params);
|
|
89
|
+
}
|
|
90
|
+
getMyDescription(params) {
|
|
91
|
+
return this.request("getMyDescription", params);
|
|
92
|
+
}
|
|
93
|
+
setMyShortDescription(params) {
|
|
94
|
+
return this.request("setMyShortDescription", params);
|
|
95
|
+
}
|
|
96
|
+
getMyShortDescription(params) {
|
|
97
|
+
return this.request("getMyShortDescription", params);
|
|
98
|
+
}
|
|
99
|
+
setMyName(params) {
|
|
100
|
+
return this.request("setMyName", params);
|
|
101
|
+
}
|
|
102
|
+
getMyName(params) {
|
|
103
|
+
return this.request("getMyName", params);
|
|
104
|
+
}
|
|
105
|
+
sendMessage(params) {
|
|
106
|
+
return this.request("sendMessage", params);
|
|
107
|
+
}
|
|
108
|
+
forwardMessage(params) {
|
|
109
|
+
return this.request("forwardMessage", params);
|
|
110
|
+
}
|
|
111
|
+
forwardMessages(params) {
|
|
112
|
+
return this.request("forwardMessages", params);
|
|
113
|
+
}
|
|
114
|
+
copyMessage(params) {
|
|
115
|
+
return this.request("copyMessage", params);
|
|
116
|
+
}
|
|
117
|
+
copyMessages(params) {
|
|
118
|
+
return this.request("copyMessages", params);
|
|
119
|
+
}
|
|
120
|
+
sendPhoto(params) {
|
|
121
|
+
return this.request("sendPhoto", params);
|
|
122
|
+
}
|
|
123
|
+
sendAudio(params) {
|
|
124
|
+
return this.request("sendAudio", params);
|
|
125
|
+
}
|
|
126
|
+
sendDocument(params) {
|
|
127
|
+
return this.request("sendDocument", params);
|
|
128
|
+
}
|
|
129
|
+
sendVideo(params) {
|
|
130
|
+
return this.request("sendVideo", params);
|
|
131
|
+
}
|
|
132
|
+
sendAnimation(params) {
|
|
133
|
+
return this.request("sendAnimation", params);
|
|
134
|
+
}
|
|
135
|
+
sendVoice(params) {
|
|
136
|
+
return this.request("sendVoice", params);
|
|
137
|
+
}
|
|
138
|
+
sendVideoNote(params) {
|
|
139
|
+
return this.request("sendVideoNote", params);
|
|
140
|
+
}
|
|
141
|
+
sendSticker(params) {
|
|
142
|
+
return this.request("sendSticker", params);
|
|
143
|
+
}
|
|
144
|
+
sendMediaGroup(params) {
|
|
145
|
+
return this.request("sendMediaGroup", params);
|
|
146
|
+
}
|
|
147
|
+
sendLocation(params) {
|
|
148
|
+
return this.request("sendLocation", params);
|
|
149
|
+
}
|
|
150
|
+
sendVenue(params) {
|
|
151
|
+
return this.request("sendVenue", params);
|
|
152
|
+
}
|
|
153
|
+
sendContact(params) {
|
|
154
|
+
return this.request("sendContact", params);
|
|
155
|
+
}
|
|
156
|
+
sendPoll(params) {
|
|
157
|
+
return this.request("sendPoll", params);
|
|
158
|
+
}
|
|
159
|
+
sendDice(params) {
|
|
160
|
+
return this.request("sendDice", params);
|
|
161
|
+
}
|
|
162
|
+
sendChatAction(params) {
|
|
163
|
+
return this.request("sendChatAction", params);
|
|
164
|
+
}
|
|
165
|
+
setMessageReaction(params) {
|
|
166
|
+
return this.request("setMessageReaction", params);
|
|
167
|
+
}
|
|
168
|
+
editMessageText(params) {
|
|
169
|
+
return this.request("editMessageText", params);
|
|
170
|
+
}
|
|
171
|
+
editMessageCaption(params) {
|
|
172
|
+
return this.request("editMessageCaption", params);
|
|
173
|
+
}
|
|
174
|
+
editMessageMedia(params) {
|
|
175
|
+
return this.request("editMessageMedia", params);
|
|
176
|
+
}
|
|
177
|
+
editMessageReplyMarkup(params) {
|
|
178
|
+
return this.request("editMessageReplyMarkup", params);
|
|
179
|
+
}
|
|
180
|
+
stopPoll(params) {
|
|
181
|
+
return this.request("stopPoll", params);
|
|
182
|
+
}
|
|
183
|
+
deleteMessage(params) {
|
|
184
|
+
return this.request("deleteMessage", params);
|
|
185
|
+
}
|
|
186
|
+
deleteMessages(params) {
|
|
187
|
+
return this.request("deleteMessages", params);
|
|
188
|
+
}
|
|
189
|
+
pinChatMessage(params) {
|
|
190
|
+
return this.request("pinChatMessage", params);
|
|
191
|
+
}
|
|
192
|
+
unpinChatMessage(params) {
|
|
193
|
+
return this.request("unpinChatMessage", params);
|
|
194
|
+
}
|
|
195
|
+
unpinAllChatMessages(params) {
|
|
196
|
+
return this.request("unpinAllChatMessages", params);
|
|
197
|
+
}
|
|
198
|
+
getFile(params) {
|
|
199
|
+
return this.request("getFile", params);
|
|
200
|
+
}
|
|
201
|
+
getUserProfilePhotos(params) {
|
|
202
|
+
return this.request("getUserProfilePhotos", params);
|
|
203
|
+
}
|
|
204
|
+
getChat(params) {
|
|
205
|
+
return this.request("getChat", params);
|
|
206
|
+
}
|
|
207
|
+
getChatAdministrators(params) {
|
|
208
|
+
return this.request("getChatAdministrators", params);
|
|
209
|
+
}
|
|
210
|
+
getChatMemberCount(params) {
|
|
211
|
+
return this.request("getChatMemberCount", params);
|
|
212
|
+
}
|
|
213
|
+
getChatMember(params) {
|
|
214
|
+
return this.request("getChatMember", params);
|
|
215
|
+
}
|
|
216
|
+
banChatMember(params) {
|
|
217
|
+
return this.request("banChatMember", params);
|
|
218
|
+
}
|
|
219
|
+
unbanChatMember(params) {
|
|
220
|
+
return this.request("unbanChatMember", params);
|
|
221
|
+
}
|
|
222
|
+
restrictChatMember(params) {
|
|
223
|
+
return this.request("restrictChatMember", params);
|
|
224
|
+
}
|
|
225
|
+
promoteChatMember(params) {
|
|
226
|
+
return this.request("promoteChatMember", params);
|
|
227
|
+
}
|
|
228
|
+
setChatAdministratorCustomTitle(params) {
|
|
229
|
+
return this.request("setChatAdministratorCustomTitle", params);
|
|
230
|
+
}
|
|
231
|
+
banChatSenderChat(params) {
|
|
232
|
+
return this.request("banChatSenderChat", params);
|
|
233
|
+
}
|
|
234
|
+
unbanChatSenderChat(params) {
|
|
235
|
+
return this.request("unbanChatSenderChat", params);
|
|
236
|
+
}
|
|
237
|
+
setChatPermissions(params) {
|
|
238
|
+
return this.request("setChatPermissions", params);
|
|
239
|
+
}
|
|
240
|
+
exportChatInviteLink(params) {
|
|
241
|
+
return this.request("exportChatInviteLink", params);
|
|
242
|
+
}
|
|
243
|
+
createChatInviteLink(params) {
|
|
244
|
+
return this.request("createChatInviteLink", params);
|
|
245
|
+
}
|
|
246
|
+
editChatInviteLink(params) {
|
|
247
|
+
return this.request("editChatInviteLink", params);
|
|
248
|
+
}
|
|
249
|
+
revokeChatInviteLink(params) {
|
|
250
|
+
return this.request("revokeChatInviteLink", params);
|
|
251
|
+
}
|
|
252
|
+
approveChatJoinRequest(params) {
|
|
253
|
+
return this.request("approveChatJoinRequest", params);
|
|
254
|
+
}
|
|
255
|
+
declineChatJoinRequest(params) {
|
|
256
|
+
return this.request("declineChatJoinRequest", params);
|
|
257
|
+
}
|
|
258
|
+
setChatPhoto(params) {
|
|
259
|
+
return this.request("setChatPhoto", params);
|
|
260
|
+
}
|
|
261
|
+
deleteChatPhoto(params) {
|
|
262
|
+
return this.request("deleteChatPhoto", params);
|
|
263
|
+
}
|
|
264
|
+
setChatTitle(params) {
|
|
265
|
+
return this.request("setChatTitle", params);
|
|
266
|
+
}
|
|
267
|
+
setChatDescription(params) {
|
|
268
|
+
return this.request("setChatDescription", params);
|
|
269
|
+
}
|
|
270
|
+
leaveChat(params) {
|
|
271
|
+
return this.request("leaveChat", params);
|
|
272
|
+
}
|
|
273
|
+
setMyCommands(params) {
|
|
274
|
+
return this.request("setMyCommands", params);
|
|
275
|
+
}
|
|
276
|
+
getMyCommands(params) {
|
|
277
|
+
return this.request("getMyCommands", params);
|
|
278
|
+
}
|
|
279
|
+
deleteMyCommands(params) {
|
|
280
|
+
return this.request("deleteMyCommands", params);
|
|
281
|
+
}
|
|
282
|
+
getChatMenuButton(params) {
|
|
283
|
+
return this.request("getChatMenuButton", params);
|
|
284
|
+
}
|
|
285
|
+
setChatMenuButton(params) {
|
|
286
|
+
return this.request("setChatMenuButton", params);
|
|
287
|
+
}
|
|
288
|
+
setMyDefaultAdministratorRights(params) {
|
|
289
|
+
return this.request("setMyDefaultAdministratorRights", params);
|
|
290
|
+
}
|
|
291
|
+
getMyDefaultAdministratorRights(params) {
|
|
292
|
+
return this.request("getMyDefaultAdministratorRights", params);
|
|
293
|
+
}
|
|
294
|
+
answerCallbackQuery(params) {
|
|
295
|
+
return this.request("answerCallbackQuery", params);
|
|
296
|
+
}
|
|
297
|
+
answerInlineQuery(params) {
|
|
298
|
+
return this.request("answerInlineQuery", params);
|
|
299
|
+
}
|
|
300
|
+
answerWebAppQuery(params) {
|
|
301
|
+
return this.request("answerWebAppQuery", params);
|
|
302
|
+
}
|
|
303
|
+
answerShippingQuery(params) {
|
|
304
|
+
return this.request("answerShippingQuery", params);
|
|
305
|
+
}
|
|
306
|
+
answerPreCheckoutQuery(params) {
|
|
307
|
+
return this.request("answerPreCheckoutQuery", params);
|
|
308
|
+
}
|
|
309
|
+
sendInvoice(params) {
|
|
310
|
+
return this.request("sendInvoice", params);
|
|
311
|
+
}
|
|
312
|
+
createInvoiceLink(params) {
|
|
313
|
+
return this.request("createInvoiceLink", params);
|
|
314
|
+
}
|
|
315
|
+
getStickerSet(params) {
|
|
316
|
+
return this.request("getStickerSet", params);
|
|
317
|
+
}
|
|
318
|
+
getCustomEmojiStickers(params) {
|
|
319
|
+
return this.request("getCustomEmojiStickers", params);
|
|
320
|
+
}
|
|
321
|
+
createNewStickerSet(params) {
|
|
322
|
+
return this.request("createNewStickerSet", params);
|
|
323
|
+
}
|
|
324
|
+
addStickerToSet(params) {
|
|
325
|
+
return this.request("addStickerToSet", params);
|
|
326
|
+
}
|
|
327
|
+
setStickerPositionInSet(params) {
|
|
328
|
+
return this.request("setStickerPositionInSet", params);
|
|
329
|
+
}
|
|
330
|
+
deleteStickerFromSet(params) {
|
|
331
|
+
return this.request("deleteStickerFromSet", params);
|
|
332
|
+
}
|
|
333
|
+
replaceStickerInSet(params) {
|
|
334
|
+
return this.request("replaceStickerInSet", params);
|
|
335
|
+
}
|
|
336
|
+
setStickerEmojiList(params) {
|
|
337
|
+
return this.request("setStickerEmojiList", params);
|
|
338
|
+
}
|
|
339
|
+
setStickerKeywords(params) {
|
|
340
|
+
return this.request("setStickerKeywords", params);
|
|
341
|
+
}
|
|
342
|
+
setStickerMaskPosition(params) {
|
|
343
|
+
return this.request("setStickerMaskPosition", params);
|
|
344
|
+
}
|
|
345
|
+
setStickerSetTitle(params) {
|
|
346
|
+
return this.request("setStickerSetTitle", params);
|
|
347
|
+
}
|
|
348
|
+
setStickerSetThumbnail(params) {
|
|
349
|
+
return this.request("setStickerSetThumbnail", params);
|
|
350
|
+
}
|
|
351
|
+
setCustomEmojiStickerSetThumbnail(params) {
|
|
352
|
+
return this.request("setCustomEmojiStickerSetThumbnail", params);
|
|
353
|
+
}
|
|
354
|
+
deleteStickerSet(params) {
|
|
355
|
+
return this.request("deleteStickerSet", params);
|
|
356
|
+
}
|
|
357
|
+
sendGame(params) {
|
|
358
|
+
return this.request("sendGame", params);
|
|
359
|
+
}
|
|
360
|
+
setGameScore(params) {
|
|
361
|
+
return this.request("setGameScore", params);
|
|
362
|
+
}
|
|
363
|
+
getGameHighScores(params) {
|
|
364
|
+
return this.request("getGameHighScores", params);
|
|
365
|
+
}
|
|
366
|
+
createForumTopic(params) {
|
|
367
|
+
return this.request("createForumTopic", params);
|
|
368
|
+
}
|
|
369
|
+
editForumTopic(params) {
|
|
370
|
+
return this.request("editForumTopic", params);
|
|
371
|
+
}
|
|
372
|
+
closeForumTopic(params) {
|
|
373
|
+
return this.request("closeForumTopic", params);
|
|
374
|
+
}
|
|
375
|
+
reopenForumTopic(params) {
|
|
376
|
+
return this.request("reopenForumTopic", params);
|
|
377
|
+
}
|
|
378
|
+
deleteForumTopic(params) {
|
|
379
|
+
return this.request("deleteForumTopic", params);
|
|
380
|
+
}
|
|
381
|
+
unpinAllForumTopicMessages(params) {
|
|
382
|
+
return this.request("unpinAllForumTopicMessages", params);
|
|
383
|
+
}
|
|
384
|
+
hideGeneralForumTopic(params) {
|
|
385
|
+
return this.request("hideGeneralForumTopic", params);
|
|
386
|
+
}
|
|
387
|
+
unhideGeneralForumTopic(params) {
|
|
388
|
+
return this.request("unhideGeneralForumTopic", params);
|
|
389
|
+
}
|
|
390
|
+
unpinAllGeneralForumTopicMessages(params) {
|
|
391
|
+
return this.request("unpinAllGeneralForumTopicMessages", params);
|
|
392
|
+
}
|
|
393
|
+
setMyStarTransactionWithdrawalLimit(params) {
|
|
394
|
+
return this.request("setMyStarTransactionWithdrawalLimit", params);
|
|
395
|
+
}
|
|
396
|
+
getStarTransactions(params) {
|
|
397
|
+
return this.request("getStarTransactions", params);
|
|
398
|
+
}
|
|
399
|
+
refundStarPayment(params) {
|
|
400
|
+
return this.request("refundStarPayment", params);
|
|
401
|
+
}
|
|
402
|
+
sendPaidMedia(params) {
|
|
403
|
+
return this.request("sendPaidMedia", params);
|
|
404
|
+
}
|
|
405
|
+
getBusinessConnection(params) {
|
|
406
|
+
return this.request("getBusinessConnection", params);
|
|
407
|
+
}
|
|
408
|
+
setChatStickerSet(params) {
|
|
409
|
+
return this.request("setChatStickerSet", params);
|
|
410
|
+
}
|
|
411
|
+
deleteChatStickerSet(params) {
|
|
412
|
+
return this.request("deleteChatStickerSet", params);
|
|
413
|
+
}
|
|
414
|
+
createChatSubscriptionInviteLink(params) {
|
|
415
|
+
return this.request("createChatSubscriptionInviteLink", params);
|
|
416
|
+
}
|
|
417
|
+
editChatSubscriptionInviteLink(params) {
|
|
418
|
+
return this.request("editChatSubscriptionInviteLink", params);
|
|
419
|
+
}
|
|
420
|
+
getAvailableGifts(_params) {
|
|
421
|
+
return this.request("getAvailableGifts");
|
|
422
|
+
}
|
|
423
|
+
sendGift(params) {
|
|
424
|
+
return this.request("sendGift", params);
|
|
425
|
+
}
|
|
426
|
+
setUserEmojiStatus(params) {
|
|
427
|
+
return this.request("setUserEmojiStatus", params);
|
|
428
|
+
}
|
|
429
|
+
verifyUser(params) {
|
|
430
|
+
return this.request("verifyUser", params);
|
|
431
|
+
}
|
|
432
|
+
removeUserVerification(params) {
|
|
433
|
+
return this.request("removeUserVerification", params);
|
|
434
|
+
}
|
|
435
|
+
verifyChat(params) {
|
|
436
|
+
return this.request("verifyChat", params);
|
|
437
|
+
}
|
|
438
|
+
removeChatVerification(params) {
|
|
439
|
+
return this.request("removeChatVerification", params);
|
|
440
|
+
}
|
|
441
|
+
readBusinessMessage(params) {
|
|
442
|
+
return this.request("readBusinessMessage", params);
|
|
443
|
+
}
|
|
444
|
+
deleteBusinessMessages(params) {
|
|
445
|
+
return this.request("deleteBusinessMessages", params);
|
|
446
|
+
}
|
|
447
|
+
allowUserMessages(params) {
|
|
448
|
+
return this.request("allowUserMessages", params);
|
|
449
|
+
}
|
|
450
|
+
disallowUserMessages(params) {
|
|
451
|
+
return this.request("disallowUserMessages", params);
|
|
452
|
+
}
|
|
453
|
+
getUserChatBoosts(params) {
|
|
454
|
+
return this.request("getUserChatBoosts", params);
|
|
455
|
+
}
|
|
456
|
+
savePreparedInlineMessage(params) {
|
|
457
|
+
return this.request("savePreparedInlineMessage", params);
|
|
458
|
+
}
|
|
459
|
+
getFileDownloadUrl(filePath) {
|
|
460
|
+
const [base, tokenPart] = this.apiBase.split("/bot");
|
|
461
|
+
return `${base}/file/bot${tokenPart}/${filePath}`;
|
|
462
|
+
}
|
|
463
|
+
async getFileWithUrl(fileId) {
|
|
464
|
+
const file = await this.getFile({ file_id: fileId });
|
|
465
|
+
const downloadUrl = file.file_path ? this.getFileDownloadUrl(file.file_path) : "";
|
|
466
|
+
return __spreadProps(__spreadValues({}, file), { downloadUrl });
|
|
467
|
+
}
|
|
468
|
+
editMessageLiveLocation(params) {
|
|
469
|
+
return this.request("editMessageLiveLocation", params);
|
|
470
|
+
}
|
|
471
|
+
stopMessageLiveLocation(params) {
|
|
472
|
+
return this.request("stopMessageLiveLocation", params);
|
|
473
|
+
}
|
|
474
|
+
sendChecklist(params) {
|
|
475
|
+
return this.request("sendChecklist", params);
|
|
476
|
+
}
|
|
477
|
+
editMessageChecklist(params) {
|
|
478
|
+
return this.request("editMessageChecklist", params);
|
|
479
|
+
}
|
|
480
|
+
uploadStickerFile(params) {
|
|
481
|
+
return this.request("uploadStickerFile", params);
|
|
482
|
+
}
|
|
483
|
+
setPassportDataErrors(params) {
|
|
484
|
+
return this.request("setPassportDataErrors", params);
|
|
485
|
+
}
|
|
486
|
+
getForumTopicIconStickers() {
|
|
487
|
+
return this.request("getForumTopicIconStickers");
|
|
488
|
+
}
|
|
489
|
+
editGeneralForumTopic(params) {
|
|
490
|
+
return this.request("editGeneralForumTopic", params);
|
|
491
|
+
}
|
|
492
|
+
closeGeneralForumTopic(params) {
|
|
493
|
+
return this.request("closeGeneralForumTopic", params);
|
|
494
|
+
}
|
|
495
|
+
reopenGeneralForumTopic(params) {
|
|
496
|
+
return this.request("reopenGeneralForumTopic", params);
|
|
497
|
+
}
|
|
498
|
+
editUserStarSubscription(params) {
|
|
499
|
+
return this.request("editUserStarSubscription", params);
|
|
500
|
+
}
|
|
501
|
+
getBusinessAccountGifts(params) {
|
|
502
|
+
return this.request("getBusinessAccountGifts", params);
|
|
503
|
+
}
|
|
504
|
+
getBusinessAccountStarBalance(params) {
|
|
505
|
+
return this.request("getBusinessAccountStarBalance", params);
|
|
506
|
+
}
|
|
507
|
+
convertGiftToStars(params) {
|
|
508
|
+
return this.request("convertGiftToStars", params);
|
|
509
|
+
}
|
|
510
|
+
upgradeGift(params) {
|
|
511
|
+
return this.request("upgradeGift", params);
|
|
512
|
+
}
|
|
513
|
+
transferGift(params) {
|
|
514
|
+
return this.request("transferGift", params);
|
|
515
|
+
}
|
|
516
|
+
transferBusinessAccountStars(params) {
|
|
517
|
+
return this.request("transferBusinessAccountStars", params);
|
|
518
|
+
}
|
|
519
|
+
setBusinessAccountName(params) {
|
|
520
|
+
return this.request("setBusinessAccountName", params);
|
|
521
|
+
}
|
|
522
|
+
setBusinessAccountUsername(params) {
|
|
523
|
+
return this.request("setBusinessAccountUsername", params);
|
|
524
|
+
}
|
|
525
|
+
setBusinessAccountBio(params) {
|
|
526
|
+
return this.request("setBusinessAccountBio", params);
|
|
527
|
+
}
|
|
528
|
+
setBusinessAccountProfilePhoto(params) {
|
|
529
|
+
return this.request("setBusinessAccountProfilePhoto", params);
|
|
530
|
+
}
|
|
531
|
+
removeBusinessAccountProfilePhoto(params) {
|
|
532
|
+
return this.request("removeBusinessAccountProfilePhoto", params);
|
|
533
|
+
}
|
|
534
|
+
setBusinessAccountGiftSettings(params) {
|
|
535
|
+
return this.request("setBusinessAccountGiftSettings", params);
|
|
536
|
+
}
|
|
537
|
+
postStory(params) {
|
|
538
|
+
return this.request("postStory", params);
|
|
539
|
+
}
|
|
540
|
+
editStory(params) {
|
|
541
|
+
return this.request("editStory", params);
|
|
542
|
+
}
|
|
543
|
+
deleteStory(params) {
|
|
544
|
+
return this.request("deleteStory", params);
|
|
545
|
+
}
|
|
546
|
+
callMethod(method, params) {
|
|
547
|
+
return this.request(method, params);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
// src/_internal/bot/dispatcher.ts
|
|
552
|
+
var Dispatcher = class {
|
|
553
|
+
constructor(options = {}) {
|
|
554
|
+
this.options = options;
|
|
555
|
+
this.messageHandlers = [];
|
|
556
|
+
this.editedMessageHandlers = [];
|
|
557
|
+
this.channelPostHandlers = [];
|
|
558
|
+
this.editedChannelPostHandlers = [];
|
|
559
|
+
this.businessMessageHandlers = [];
|
|
560
|
+
this.editedBusinessMessageHandlers = [];
|
|
561
|
+
this.deletedBusinessMessagesHandlers = [];
|
|
562
|
+
this.pollHandlers = [];
|
|
563
|
+
this.callbackQueryHandlers = [];
|
|
564
|
+
this.inlineQueryHandlers = [];
|
|
565
|
+
this.chosenInlineResultHandlers = [];
|
|
566
|
+
this.shippingQueryHandlers = [];
|
|
567
|
+
this.preCheckoutQueryHandlers = [];
|
|
568
|
+
this.pollAnswerHandlers = [];
|
|
569
|
+
this.myChatMemberHandlers = [];
|
|
570
|
+
this.chatMemberHandlers = [];
|
|
571
|
+
this.chatJoinRequestHandlers = [];
|
|
572
|
+
this.chatBoostHandlers = [];
|
|
573
|
+
this.removedChatBoostHandlers = [];
|
|
574
|
+
this.messageReactionHandlers = [];
|
|
575
|
+
this.businessConnectionHandlers = [];
|
|
576
|
+
this.purchasedPaidMediaHandlers = [];
|
|
577
|
+
this.messageReactionCountHandlers = [];
|
|
578
|
+
var _a;
|
|
579
|
+
this.botUsername = (_a = options.botUsername) == null ? void 0 : _a.replace(/^@/, "");
|
|
580
|
+
}
|
|
581
|
+
setBotUsername(username) {
|
|
582
|
+
this.botUsername = username.replace(/^@/, "");
|
|
583
|
+
return this;
|
|
584
|
+
}
|
|
585
|
+
onMessage(handler, filter) {
|
|
586
|
+
this.messageHandlers.push({ handler, filter });
|
|
587
|
+
return this;
|
|
588
|
+
}
|
|
589
|
+
onCommand(command, handler) {
|
|
590
|
+
const commandFilter = (msg) => {
|
|
591
|
+
var _a, _b;
|
|
592
|
+
const text = (_b = (_a = msg.text) == null ? void 0 : _a.trim()) != null ? _b : "";
|
|
593
|
+
const cmd = text.split(" ")[0];
|
|
594
|
+
if (cmd === `/${command}`) return true;
|
|
595
|
+
if (this.botUsername && cmd === `/${command}@${this.botUsername}`) return true;
|
|
596
|
+
return false;
|
|
597
|
+
};
|
|
598
|
+
this.messageHandlers.push({ handler, filter: commandFilter });
|
|
599
|
+
return this;
|
|
600
|
+
}
|
|
601
|
+
onEditedMessage(handler, filter) {
|
|
602
|
+
this.editedMessageHandlers.push({ handler, filter });
|
|
603
|
+
return this;
|
|
604
|
+
}
|
|
605
|
+
onChannelPost(handler, filter) {
|
|
606
|
+
this.channelPostHandlers.push({ handler, filter });
|
|
607
|
+
return this;
|
|
608
|
+
}
|
|
609
|
+
onEditedChannelPost(handler, filter) {
|
|
610
|
+
this.editedChannelPostHandlers.push({ handler, filter });
|
|
611
|
+
return this;
|
|
612
|
+
}
|
|
613
|
+
onBusinessMessage(handler, filter) {
|
|
614
|
+
this.businessMessageHandlers.push({ handler, filter });
|
|
615
|
+
return this;
|
|
616
|
+
}
|
|
617
|
+
onEditedBusinessMessage(handler, filter) {
|
|
618
|
+
this.editedBusinessMessageHandlers.push({ handler, filter });
|
|
619
|
+
return this;
|
|
620
|
+
}
|
|
621
|
+
onDeletedBusinessMessages(handler) {
|
|
622
|
+
this.deletedBusinessMessagesHandlers.push({ handler });
|
|
623
|
+
return this;
|
|
624
|
+
}
|
|
625
|
+
onPoll(handler) {
|
|
626
|
+
this.pollHandlers.push({ handler });
|
|
627
|
+
return this;
|
|
628
|
+
}
|
|
629
|
+
onCallbackQuery(handler, pattern) {
|
|
630
|
+
this.callbackQueryHandlers.push({ handler, pattern });
|
|
631
|
+
return this;
|
|
632
|
+
}
|
|
633
|
+
onInlineQuery(handler) {
|
|
634
|
+
this.inlineQueryHandlers.push({ handler });
|
|
635
|
+
return this;
|
|
636
|
+
}
|
|
637
|
+
onChosenInlineResult(handler) {
|
|
638
|
+
this.chosenInlineResultHandlers.push({ handler });
|
|
639
|
+
return this;
|
|
640
|
+
}
|
|
641
|
+
onShippingQuery(handler) {
|
|
642
|
+
this.shippingQueryHandlers.push({ handler });
|
|
643
|
+
return this;
|
|
644
|
+
}
|
|
645
|
+
onPreCheckoutQuery(handler) {
|
|
646
|
+
this.preCheckoutQueryHandlers.push({ handler });
|
|
647
|
+
return this;
|
|
648
|
+
}
|
|
649
|
+
onPollAnswer(handler) {
|
|
650
|
+
this.pollAnswerHandlers.push({ handler });
|
|
651
|
+
return this;
|
|
652
|
+
}
|
|
653
|
+
onMyChatMember(handler) {
|
|
654
|
+
this.myChatMemberHandlers.push({ handler });
|
|
655
|
+
return this;
|
|
656
|
+
}
|
|
657
|
+
onChatMember(handler) {
|
|
658
|
+
this.chatMemberHandlers.push({ handler });
|
|
659
|
+
return this;
|
|
660
|
+
}
|
|
661
|
+
onChatJoinRequest(handler) {
|
|
662
|
+
this.chatJoinRequestHandlers.push({ handler });
|
|
663
|
+
return this;
|
|
664
|
+
}
|
|
665
|
+
onChatBoost(handler) {
|
|
666
|
+
this.chatBoostHandlers.push({ handler });
|
|
667
|
+
return this;
|
|
668
|
+
}
|
|
669
|
+
onRemovedChatBoost(handler) {
|
|
670
|
+
this.removedChatBoostHandlers.push({ handler });
|
|
671
|
+
return this;
|
|
672
|
+
}
|
|
673
|
+
onMessageReaction(handler) {
|
|
674
|
+
this.messageReactionHandlers.push({ handler });
|
|
675
|
+
return this;
|
|
676
|
+
}
|
|
677
|
+
onBusinessConnection(handler) {
|
|
678
|
+
this.businessConnectionHandlers.push({ handler });
|
|
679
|
+
return this;
|
|
680
|
+
}
|
|
681
|
+
onPurchasedPaidMedia(handler) {
|
|
682
|
+
this.purchasedPaidMediaHandlers.push({ handler });
|
|
683
|
+
return this;
|
|
684
|
+
}
|
|
685
|
+
onMessageReactionCount(handler) {
|
|
686
|
+
this.messageReactionCountHandlers.push({ handler });
|
|
687
|
+
return this;
|
|
688
|
+
}
|
|
689
|
+
async dispatch(update) {
|
|
690
|
+
var _a, _b;
|
|
691
|
+
try {
|
|
692
|
+
if (update.message) {
|
|
693
|
+
await this._runMessageHandlers(update.message, this.messageHandlers);
|
|
694
|
+
} else if (update.edited_message) {
|
|
695
|
+
await this._runMessageHandlers(update.edited_message, this.editedMessageHandlers);
|
|
696
|
+
} else if (update.channel_post) {
|
|
697
|
+
await this._runMessageHandlers(update.channel_post, this.channelPostHandlers);
|
|
698
|
+
} else if (update.edited_channel_post) {
|
|
699
|
+
await this._runMessageHandlers(update.edited_channel_post, this.editedChannelPostHandlers);
|
|
700
|
+
} else if (update.business_message) {
|
|
701
|
+
await this._runMessageHandlers(update.business_message, this.businessMessageHandlers);
|
|
702
|
+
} else if (update.edited_business_message) {
|
|
703
|
+
await this._runMessageHandlers(
|
|
704
|
+
update.edited_business_message,
|
|
705
|
+
this.editedBusinessMessageHandlers
|
|
706
|
+
);
|
|
707
|
+
} else if (update.deleted_business_messages) {
|
|
708
|
+
for (const { handler } of this.deletedBusinessMessagesHandlers) {
|
|
709
|
+
await handler(update.deleted_business_messages);
|
|
710
|
+
}
|
|
711
|
+
} else if (update.poll) {
|
|
712
|
+
for (const { handler } of this.pollHandlers) {
|
|
713
|
+
await handler(update.poll);
|
|
714
|
+
}
|
|
715
|
+
} else if (update.callback_query) {
|
|
716
|
+
await this._runCallbackQueryHandlers(update.callback_query);
|
|
717
|
+
} else if (update.inline_query) {
|
|
718
|
+
for (const { handler } of this.inlineQueryHandlers) {
|
|
719
|
+
await handler(update.inline_query);
|
|
720
|
+
}
|
|
721
|
+
} else if (update.chosen_inline_result) {
|
|
722
|
+
for (const { handler } of this.chosenInlineResultHandlers) {
|
|
723
|
+
await handler(update.chosen_inline_result);
|
|
724
|
+
}
|
|
725
|
+
} else if (update.shipping_query) {
|
|
726
|
+
for (const { handler } of this.shippingQueryHandlers) {
|
|
727
|
+
await handler(update.shipping_query);
|
|
728
|
+
}
|
|
729
|
+
} else if (update.pre_checkout_query) {
|
|
730
|
+
for (const { handler } of this.preCheckoutQueryHandlers) {
|
|
731
|
+
await handler(update.pre_checkout_query);
|
|
732
|
+
}
|
|
733
|
+
} else if (update.poll_answer) {
|
|
734
|
+
for (const { handler } of this.pollAnswerHandlers) {
|
|
735
|
+
await handler(update.poll_answer);
|
|
736
|
+
}
|
|
737
|
+
} else if (update.my_chat_member) {
|
|
738
|
+
for (const { handler } of this.myChatMemberHandlers) {
|
|
739
|
+
await handler(update.my_chat_member);
|
|
740
|
+
}
|
|
741
|
+
} else if (update.chat_member) {
|
|
742
|
+
for (const { handler } of this.chatMemberHandlers) {
|
|
743
|
+
await handler(update.chat_member);
|
|
744
|
+
}
|
|
745
|
+
} else if (update.chat_join_request) {
|
|
746
|
+
for (const { handler } of this.chatJoinRequestHandlers) {
|
|
747
|
+
await handler(update.chat_join_request);
|
|
748
|
+
}
|
|
749
|
+
} else if (update.chat_boost) {
|
|
750
|
+
for (const { handler } of this.chatBoostHandlers) {
|
|
751
|
+
await handler(update.chat_boost);
|
|
752
|
+
}
|
|
753
|
+
} else if (update.removed_chat_boost) {
|
|
754
|
+
for (const { handler } of this.removedChatBoostHandlers) {
|
|
755
|
+
await handler(update.removed_chat_boost);
|
|
756
|
+
}
|
|
757
|
+
} else if (update.message_reaction) {
|
|
758
|
+
for (const { handler } of this.messageReactionHandlers) {
|
|
759
|
+
await handler(update.message_reaction);
|
|
760
|
+
}
|
|
761
|
+
} else if (update.message_reaction_count) {
|
|
762
|
+
for (const { handler } of this.messageReactionCountHandlers) {
|
|
763
|
+
await handler(update.message_reaction_count);
|
|
764
|
+
}
|
|
765
|
+
} else if (update.business_connection) {
|
|
766
|
+
for (const { handler } of this.businessConnectionHandlers) {
|
|
767
|
+
await handler(update.business_connection);
|
|
768
|
+
}
|
|
769
|
+
} else if (update.purchased_paid_media) {
|
|
770
|
+
for (const { handler } of this.purchasedPaidMediaHandlers) {
|
|
771
|
+
await handler(update.purchased_paid_media);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
} catch (err) {
|
|
775
|
+
const error = err instanceof Error ? err : new Error(String(err));
|
|
776
|
+
(_b = (_a = this.options).onError) == null ? void 0 : _b.call(_a, error, update);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
async _runMessageHandlers(message, handlers) {
|
|
780
|
+
for (const { handler, filter } of handlers) {
|
|
781
|
+
if (filter) {
|
|
782
|
+
const passes = await Promise.resolve(filter(message));
|
|
783
|
+
if (!passes) continue;
|
|
784
|
+
}
|
|
785
|
+
await handler(message);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
async _runCallbackQueryHandlers(query) {
|
|
789
|
+
var _a;
|
|
790
|
+
for (const { handler, pattern } of this.callbackQueryHandlers) {
|
|
791
|
+
if (pattern !== void 0) {
|
|
792
|
+
const data = (_a = query.data) != null ? _a : "";
|
|
793
|
+
const matches = typeof pattern === "string" ? data === pattern : pattern.test(data);
|
|
794
|
+
if (!matches) continue;
|
|
795
|
+
}
|
|
796
|
+
await handler(query);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
toHandler() {
|
|
800
|
+
return (update) => this.dispatch(update);
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
// src/_internal/bot/polling.ts
|
|
805
|
+
var TelegramPoller = class {
|
|
806
|
+
constructor(getUpdates, handler, options = {}) {
|
|
807
|
+
this.getUpdates = getUpdates;
|
|
808
|
+
this.handler = handler;
|
|
809
|
+
this.options = options;
|
|
810
|
+
this.running = false;
|
|
811
|
+
this.offset = 0;
|
|
812
|
+
this.abortController = null;
|
|
813
|
+
}
|
|
814
|
+
start() {
|
|
815
|
+
if (this.running) return;
|
|
816
|
+
this.running = true;
|
|
817
|
+
void this._loop();
|
|
818
|
+
}
|
|
819
|
+
stop() {
|
|
820
|
+
var _a;
|
|
821
|
+
this.running = false;
|
|
822
|
+
(_a = this.abortController) == null ? void 0 : _a.abort();
|
|
823
|
+
this.abortController = null;
|
|
824
|
+
}
|
|
825
|
+
get isRunning() {
|
|
826
|
+
return this.running;
|
|
827
|
+
}
|
|
828
|
+
async _loop() {
|
|
829
|
+
const {
|
|
830
|
+
timeout = 30,
|
|
831
|
+
limit = 100,
|
|
832
|
+
allowedUpdates,
|
|
833
|
+
onError,
|
|
834
|
+
retryAfterMs = 5e3
|
|
835
|
+
} = this.options;
|
|
836
|
+
while (this.running) {
|
|
837
|
+
this.abortController = new AbortController();
|
|
838
|
+
try {
|
|
839
|
+
const updates = await this.getUpdates({
|
|
840
|
+
offset: this.offset,
|
|
841
|
+
timeout,
|
|
842
|
+
limit,
|
|
843
|
+
allowed_updates: allowedUpdates
|
|
844
|
+
});
|
|
845
|
+
for (const update of updates) {
|
|
846
|
+
if (!this.running) break;
|
|
847
|
+
this.offset = update.update_id + 1;
|
|
848
|
+
try {
|
|
849
|
+
await this.handler(update);
|
|
850
|
+
} catch (err) {
|
|
851
|
+
onError == null ? void 0 : onError(err instanceof Error ? err : new Error(String(err)));
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
} catch (err) {
|
|
855
|
+
if (!this.running) break;
|
|
856
|
+
const error = err instanceof Error ? err : new Error(String(err));
|
|
857
|
+
onError == null ? void 0 : onError(error);
|
|
858
|
+
await _sleep(retryAfterMs);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
function _sleep(ms) {
|
|
864
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
exports.Dispatcher = Dispatcher;
|
|
868
|
+
exports.TelegramApiError = TelegramApiError;
|
|
869
|
+
exports.TelegramBot = TelegramBot;
|
|
870
|
+
exports.TelegramPoller = TelegramPoller;
|