telegram-bot-api-nodejs 1.0.78 → 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 +8 -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;
|
|
@@ -284,6 +286,7 @@ export interface VideoChatParticipantsInvited {
|
|
|
284
286
|
export interface Message {
|
|
285
287
|
message_id: number;
|
|
286
288
|
message_thread_id?: number;
|
|
289
|
+
direct_messages_topic?: DirectMessagesTopic;
|
|
287
290
|
from?: User;
|
|
288
291
|
sender_business_bot?: User;
|
|
289
292
|
date: number;
|
|
@@ -587,6 +590,10 @@ export interface Poll {
|
|
|
587
590
|
options: PollOption[];
|
|
588
591
|
is_closed: boolean;
|
|
589
592
|
}
|
|
593
|
+
export interface DirectMessagesTopic {
|
|
594
|
+
topic_id: string;
|
|
595
|
+
user?: User;
|
|
596
|
+
}
|
|
590
597
|
export interface UserProfilePhotos {
|
|
591
598
|
total_count: number;
|
|
592
599
|
photos: PhotoSize[][];
|