telegram-bot-api-nodejs 1.0.25 → 1.0.27

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 +26 -17
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -186,6 +186,7 @@ export interface Message {
186
186
  from?: User;
187
187
  date: number;
188
188
  chat: Chat;
189
+ via_bot?: User;
189
190
  forward_from?: User;
190
191
  forward_from_chat?: Chat;
191
192
  forward_from_message_id?: number;
@@ -603,7 +604,7 @@ export interface ChatInviteLink {
603
604
  member_limit?: number;
604
605
  pending_join_request_count?: number;
605
606
  }
606
- interface Game {
607
+ export interface Game {
607
608
  title: string;
608
609
  description: string;
609
610
  photo: PhotoSize[];
@@ -622,33 +623,41 @@ export interface Animation extends FileBase {
622
623
  mime_type?: string;
623
624
  }
624
625
  type CallbackGame = object;
625
- interface BotCommand {
626
+ export interface GameHighScore {
627
+ position: number;
628
+ user: User;
629
+ score: number;
630
+ }
631
+ export interface Metadata {
632
+ type?: MessageType;
633
+ }
634
+ export interface BotCommand {
626
635
  command: string;
627
636
  description: string;
628
637
  }
629
- type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
630
- interface BotCommandScopeDefault {
631
- type: 'default';
638
+ export type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
639
+ export interface BotCommandScopeDefault {
640
+ type: "default";
632
641
  }
633
- interface BotCommandScopeAllPrivateChats {
634
- type: 'all_private_chats';
642
+ export interface BotCommandScopeAllPrivateChats {
643
+ type: "all_private_chats";
635
644
  }
636
- interface BotCommandScopeAllGroupChats {
637
- type: 'all_group_chats';
645
+ export interface BotCommandScopeAllGroupChats {
646
+ type: "all_group_chats";
638
647
  }
639
- interface BotCommandScopeAllChatAdministrators {
640
- type: 'all_chat_administrators';
648
+ export interface BotCommandScopeAllChatAdministrators {
649
+ type: "all_chat_administrators";
641
650
  }
642
- interface BotCommandScopeChat {
643
- type: 'chat';
651
+ export interface BotCommandScopeChat {
652
+ type: "chat";
644
653
  chat_id: number | string;
645
654
  }
646
- interface BotCommandScopeChatAdministrators {
647
- type: 'chat_administrators';
655
+ export interface BotCommandScopeChatAdministrators {
656
+ type: "chat_administrators";
648
657
  chat_id: number | string;
649
658
  }
650
- interface BotCommandScopeChatMember {
651
- type: 'chat_member';
659
+ export interface BotCommandScopeChatMember {
660
+ type: "chat_member";
652
661
  chat_id: number | string;
653
662
  user_id: number;
654
663
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-bot-api-nodejs",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Telegram Bot API client for nodejs",
5
5
  "type": "module",
6
6
  "main": "index.js",