telegram-bot-api-nodejs 1.0.25 → 1.0.26

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