telegram-bot-api-nodejs 1.0.22 → 1.0.24
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 +22 -9
- package/index.js +0 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export interface Update {
|
|
|
108
108
|
shipping_query?: ShippingQuery;
|
|
109
109
|
pre_checkout_query?: PreCheckoutQuery;
|
|
110
110
|
my_chat_member?: ChatMemberUpdated;
|
|
111
|
+
chat_join_request?: ChatJoinRequest;
|
|
111
112
|
}
|
|
112
113
|
export interface WebhookInfo {
|
|
113
114
|
url: string;
|
|
@@ -156,23 +157,23 @@ interface ForumTopicEdited {
|
|
|
156
157
|
name?: string;
|
|
157
158
|
icon_custom_emoji_id?: string;
|
|
158
159
|
}
|
|
159
|
-
interface ForumTopicClosed {
|
|
160
|
+
export interface ForumTopicClosed {
|
|
160
161
|
}
|
|
161
|
-
interface ForumTopicReopened {
|
|
162
|
+
export interface ForumTopicReopened {
|
|
162
163
|
}
|
|
163
|
-
interface GeneralForumTopicHidden {
|
|
164
|
+
export interface GeneralForumTopicHidden {
|
|
164
165
|
}
|
|
165
|
-
interface GeneralForumTopicUnhidden {
|
|
166
|
+
export interface GeneralForumTopicUnhidden {
|
|
166
167
|
}
|
|
167
|
-
interface VideoChatScheduled {
|
|
168
|
+
export interface VideoChatScheduled {
|
|
168
169
|
start_date: number;
|
|
169
170
|
}
|
|
170
|
-
interface VideoChatStarted {
|
|
171
|
+
export interface VideoChatStarted {
|
|
171
172
|
}
|
|
172
|
-
interface VideoChatEnded {
|
|
173
|
+
export interface VideoChatEnded {
|
|
173
174
|
duration: number;
|
|
174
175
|
}
|
|
175
|
-
interface VideoChatParticipantsInvited {
|
|
176
|
+
export interface VideoChatParticipantsInvited {
|
|
176
177
|
users: User[];
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
@@ -222,6 +223,7 @@ export interface Message {
|
|
|
222
223
|
group_chat_created?: boolean;
|
|
223
224
|
supergroup_chat_created?: boolean;
|
|
224
225
|
channel_chat_created?: boolean;
|
|
226
|
+
message_auto_delete_timer_changed: MessageAutoDeleteTimerChanged;
|
|
225
227
|
migrate_to_chat_id?: number;
|
|
226
228
|
migrate_from_chat_id?: number;
|
|
227
229
|
pinned_message?: Message;
|
|
@@ -545,6 +547,9 @@ interface OrderInfo {
|
|
|
545
547
|
email?: string;
|
|
546
548
|
shipping_address?: ShippingAddress;
|
|
547
549
|
}
|
|
550
|
+
interface MessageAutoDeleteTimerChanged {
|
|
551
|
+
message_auto_delete_time: number;
|
|
552
|
+
}
|
|
548
553
|
interface SuccessfulPayment {
|
|
549
554
|
currency: string;
|
|
550
555
|
total_amount: number;
|
|
@@ -578,7 +583,15 @@ interface ChatMemberUpdated {
|
|
|
578
583
|
invite_link: ChatInviteLink;
|
|
579
584
|
via_chat_folder_invite_link: boolean;
|
|
580
585
|
}
|
|
581
|
-
interface
|
|
586
|
+
export interface ChatJoinRequest {
|
|
587
|
+
chat: Chat;
|
|
588
|
+
from: User;
|
|
589
|
+
user_chat_id: number;
|
|
590
|
+
date: number;
|
|
591
|
+
bio?: string;
|
|
592
|
+
invite_link?: ChatInviteLink;
|
|
593
|
+
}
|
|
594
|
+
export interface ChatInviteLink {
|
|
582
595
|
invite_link: string;
|
|
583
596
|
creator: User;
|
|
584
597
|
creates_join_request: boolean;
|
package/index.js
CHANGED
|
@@ -244,9 +244,6 @@ function parseMessage(m) {
|
|
|
244
244
|
location: m.location ? parseLocation(m.location) : void 0,
|
|
245
245
|
venue: m.venue ? parseVenue(m.venue) : void 0,
|
|
246
246
|
poll: m.poll ? parsePoll(m.poll) : void 0,
|
|
247
|
-
// new_chat_members?: User[];
|
|
248
|
-
// new_chat_title?: string;
|
|
249
|
-
// new_chat_photo?: PhotoSize[];
|
|
250
247
|
// delete_chat_photo?: boolean;
|
|
251
248
|
// group_chat_created?: boolean;
|
|
252
249
|
// supergroup_chat_created?: boolean;
|