telegram-bot-api-nodejs 1.2.11 → 1.2.13

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 (2) hide show
  1. package/index.d.ts +9 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -347,6 +347,8 @@ export interface Message {
347
347
  poll?: Poll;
348
348
  new_chat_members?: User[];
349
349
  left_chat_member?: User;
350
+ chat_owner_left?: ChatOwnerLeft;
351
+ chat_owner_changed?: ChatOwnerChanged;
350
352
  new_chat_title?: string;
351
353
  new_chat_photo?: PhotoSize[];
352
354
  delete_chat_photo?: boolean;
@@ -411,6 +413,12 @@ export interface ChatBoostRemoved {
411
413
  remove_date: number;
412
414
  source: ChatBoostSource;
413
415
  }
416
+ export interface ChatOwnerLeft {
417
+ new_owner?: User;
418
+ }
419
+ export interface ChatOwnerChanged {
420
+ new_owner: User;
421
+ }
414
422
  export interface BusinessConnection {
415
423
  id: string;
416
424
  user: User;
@@ -575,7 +583,7 @@ export interface InputMediaVideo extends InputMediaBase {
575
583
  duration?: number;
576
584
  supports_streaming?: boolean;
577
585
  }
578
- export type InputMedia = InputMediaPhoto | InputMediaVideo | InputMediaDocument | InputMediaPhoto;
586
+ export type InputMedia = InputMediaPhoto | InputMediaVideo | InputMediaDocument | InputMediaAudio;
579
587
  export interface VideoNote extends FileBase {
580
588
  length: number;
581
589
  duration: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-bot-api-nodejs",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "Telegram Bot API client for nodejs",
5
5
  "type": "module",
6
6
  "main": "index.js",