telegram-bot-api-nodejs 1.0.21 → 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.
Files changed (3) hide show
  1. package/index.d.ts +29 -5
  2. package/index.js +0 -3
  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,13 +157,24 @@ 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 {
167
+ }
168
+ export interface VideoChatScheduled {
169
+ start_date: number;
170
+ }
171
+ export interface VideoChatStarted {
172
+ }
173
+ export interface VideoChatEnded {
174
+ duration: number;
175
+ }
176
+ export interface VideoChatParticipantsInvited {
177
+ users: User[];
166
178
  }
167
179
  /**
168
180
  * @docs https://core.telegram.org/bots/api#message
@@ -226,6 +238,10 @@ export interface Message {
226
238
  forum_topic_reopened?: ForumTopicReopened;
227
239
  general_forum_topic_hidden?: GeneralForumTopicHidden;
228
240
  general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
241
+ video_chat_scheduled: VideoChatScheduled;
242
+ video_chat_started: VideoChatStarted;
243
+ video_chat_ended: VideoChatEnded;
244
+ video_chat_participants_invited: VideoChatParticipantsInvited;
229
245
  }
230
246
  export interface MessageReactionUpdated {
231
247
  chat: Chat;
@@ -563,7 +579,15 @@ interface ChatMemberUpdated {
563
579
  invite_link: ChatInviteLink;
564
580
  via_chat_folder_invite_link: boolean;
565
581
  }
566
- interface ChatInviteLink {
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 {
567
591
  invite_link: string;
568
592
  creator: User;
569
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-bot-api-nodejs",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Telegram Bot API client for nodejs",
5
5
  "type": "module",
6
6
  "main": "index.js",