telegram-bot-api-nodejs 1.0.77 → 1.2.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/index.d.ts +19 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface SendBasicOptions {
|
|
|
15
15
|
chat_id: number | string;
|
|
16
16
|
business_connection_id?: string;
|
|
17
17
|
message_thread_id?: number;
|
|
18
|
+
direct_messages_topic_id?: number;
|
|
18
19
|
disable_notification?: boolean;
|
|
19
20
|
reply_to_message_id?: number | string;
|
|
20
21
|
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
@@ -198,7 +199,6 @@ export interface Chat {
|
|
|
198
199
|
username?: string;
|
|
199
200
|
first_name?: string;
|
|
200
201
|
last_name?: string;
|
|
201
|
-
is_forum?: boolean;
|
|
202
202
|
photo?: ChatPhoto;
|
|
203
203
|
bio?: string;
|
|
204
204
|
description?: string;
|
|
@@ -207,6 +207,8 @@ export interface Chat {
|
|
|
207
207
|
permissions?: ChatPermissions;
|
|
208
208
|
can_set_sticker_set?: boolean;
|
|
209
209
|
sticker_set_name?: string;
|
|
210
|
+
is_forum?: string;
|
|
211
|
+
is_direct_messages?: boolean;
|
|
210
212
|
}
|
|
211
213
|
export interface WriteAccessAllowed {
|
|
212
214
|
from_request?: boolean;
|
|
@@ -258,6 +260,15 @@ export interface GiveawayWinners {
|
|
|
258
260
|
was_refunded?: boolean;
|
|
259
261
|
prize_description?: string;
|
|
260
262
|
}
|
|
263
|
+
export interface GiveawayCompleted {
|
|
264
|
+
winner_count: number;
|
|
265
|
+
unclaimed_prize_count?: number;
|
|
266
|
+
giveaway_message?: Message;
|
|
267
|
+
is_star_giveaway?: boolean;
|
|
268
|
+
}
|
|
269
|
+
export interface PaidMessagePriceChanged {
|
|
270
|
+
paid_message_star_count: number;
|
|
271
|
+
}
|
|
261
272
|
export interface VideoChatScheduled {
|
|
262
273
|
start_date: number;
|
|
263
274
|
}
|
|
@@ -275,6 +286,7 @@ export interface VideoChatParticipantsInvited {
|
|
|
275
286
|
export interface Message {
|
|
276
287
|
message_id: number;
|
|
277
288
|
message_thread_id?: number;
|
|
289
|
+
direct_messages_topic?: DirectMessagesTopic;
|
|
278
290
|
from?: User;
|
|
279
291
|
sender_business_bot?: User;
|
|
280
292
|
date: number;
|
|
@@ -336,6 +348,8 @@ export interface Message {
|
|
|
336
348
|
general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
|
|
337
349
|
giveaway?: Giveaway;
|
|
338
350
|
giveaway_winners?: GiveawayWinners;
|
|
351
|
+
giveaway_completed: GiveawayCompleted;
|
|
352
|
+
paid_message_price_changed: PaidMessagePriceChanged;
|
|
339
353
|
video_chat_scheduled?: VideoChatScheduled;
|
|
340
354
|
video_chat_started?: VideoChatStarted;
|
|
341
355
|
video_chat_ended?: VideoChatEnded;
|
|
@@ -576,6 +590,10 @@ export interface Poll {
|
|
|
576
590
|
options: PollOption[];
|
|
577
591
|
is_closed: boolean;
|
|
578
592
|
}
|
|
593
|
+
export interface DirectMessagesTopic {
|
|
594
|
+
topic_id: string;
|
|
595
|
+
user?: User;
|
|
596
|
+
}
|
|
579
597
|
export interface UserProfilePhotos {
|
|
580
598
|
total_count: number;
|
|
581
599
|
photos: PhotoSize[][];
|