telegram-bot-api-nodejs 1.0.22 → 1.0.23
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 +18 -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
|
/**
|
|
@@ -578,7 +579,15 @@ interface ChatMemberUpdated {
|
|
|
578
579
|
invite_link: ChatInviteLink;
|
|
579
580
|
via_chat_folder_invite_link: boolean;
|
|
580
581
|
}
|
|
581
|
-
interface
|
|
582
|
+
export interface ChatJoinRequest {
|
|
583
|
+
chat: Chat;
|
|
584
|
+
from: User;
|
|
585
|
+
user_chat_id: number;
|
|
586
|
+
date: number;
|
|
587
|
+
bio?: string;
|
|
588
|
+
invite_link?: ChatInviteLink;
|
|
589
|
+
}
|
|
590
|
+
export interface ChatInviteLink {
|
|
582
591
|
invite_link: string;
|
|
583
592
|
creator: User;
|
|
584
593
|
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;
|