telegram-bot-api-nodejs 1.0.39 → 1.0.41
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/index.d.ts +37 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -166,6 +166,8 @@ export interface Update {
|
|
|
166
166
|
my_chat_member?: ChatMemberUpdated;
|
|
167
167
|
chat_member?: ChatMemberUpdated;
|
|
168
168
|
chat_join_request?: ChatJoinRequest;
|
|
169
|
+
chat_boost?: ChatBoostUpdated;
|
|
170
|
+
removed_chat_boost?: ChatBoostRemoved;
|
|
169
171
|
}
|
|
170
172
|
export interface WebhookInfo {
|
|
171
173
|
url: string;
|
|
@@ -206,6 +208,9 @@ export interface Chat {
|
|
|
206
208
|
can_set_sticker_set?: boolean;
|
|
207
209
|
sticker_set_name?: string;
|
|
208
210
|
}
|
|
211
|
+
export interface ChatBoostAdded {
|
|
212
|
+
boost_count: number;
|
|
213
|
+
}
|
|
209
214
|
export interface ForumTopicCreated {
|
|
210
215
|
name: string;
|
|
211
216
|
icon_color: number;
|
|
@@ -297,6 +302,7 @@ export interface Message {
|
|
|
297
302
|
passport_data?: PassportData;
|
|
298
303
|
reply_markup?: InlineKeyboardMarkup;
|
|
299
304
|
sender_chat?: Chat;
|
|
305
|
+
boost_added?: ChatBoostAdded;
|
|
300
306
|
forum_topic_created?: ForumTopicCreated;
|
|
301
307
|
forum_topic_edited?: ForumTopicEdited;
|
|
302
308
|
forum_topic_closed?: ForumTopicClosed;
|
|
@@ -308,6 +314,37 @@ export interface Message {
|
|
|
308
314
|
video_chat_ended: VideoChatEnded;
|
|
309
315
|
video_chat_participants_invited: VideoChatParticipantsInvited;
|
|
310
316
|
}
|
|
317
|
+
export type ChatBoostSource = ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway;
|
|
318
|
+
export interface ChatBoostSourcePremium {
|
|
319
|
+
source: "premium";
|
|
320
|
+
user: User;
|
|
321
|
+
}
|
|
322
|
+
export interface ChatBoostSourceGiftCode {
|
|
323
|
+
source: "gift_code";
|
|
324
|
+
user: User;
|
|
325
|
+
}
|
|
326
|
+
export interface ChatBoostSourceGiveaway {
|
|
327
|
+
source: "giveaway";
|
|
328
|
+
giveaway_message_id: number;
|
|
329
|
+
user?: User;
|
|
330
|
+
is_unclaimed?: boolean;
|
|
331
|
+
}
|
|
332
|
+
export interface ChatBoost {
|
|
333
|
+
boost_id: string;
|
|
334
|
+
add_date: number;
|
|
335
|
+
expiration_date: number;
|
|
336
|
+
source: ChatBoostSource;
|
|
337
|
+
}
|
|
338
|
+
export interface ChatBoostUpdated {
|
|
339
|
+
chat: Chat;
|
|
340
|
+
boost: ChatBoost;
|
|
341
|
+
}
|
|
342
|
+
export interface ChatBoostRemoved {
|
|
343
|
+
chat: Chat;
|
|
344
|
+
boost_id: string;
|
|
345
|
+
remove_date: number;
|
|
346
|
+
source: ChatBoostSource;
|
|
347
|
+
}
|
|
311
348
|
export interface BusinessConnection {
|
|
312
349
|
id: string;
|
|
313
350
|
user: User;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telegram-bot-api-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "Telegram Bot API client for nodejs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"author": "",
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"typescript": "^5.4
|
|
27
|
+
"@types/node": "^22.5.4",
|
|
28
|
+
"typescript": "^5.5.4"
|
|
29
29
|
}
|
|
30
30
|
}
|