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.
- package/index.d.ts +25 -17
- 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
|
|
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:
|
|
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:
|
|
641
|
+
export interface BotCommandScopeAllPrivateChats {
|
|
642
|
+
type: "all_private_chats";
|
|
635
643
|
}
|
|
636
|
-
interface BotCommandScopeAllGroupChats {
|
|
637
|
-
type:
|
|
644
|
+
export interface BotCommandScopeAllGroupChats {
|
|
645
|
+
type: "all_group_chats";
|
|
638
646
|
}
|
|
639
|
-
interface BotCommandScopeAllChatAdministrators {
|
|
640
|
-
type:
|
|
647
|
+
export interface BotCommandScopeAllChatAdministrators {
|
|
648
|
+
type: "all_chat_administrators";
|
|
641
649
|
}
|
|
642
|
-
interface BotCommandScopeChat {
|
|
643
|
-
type:
|
|
650
|
+
export interface BotCommandScopeChat {
|
|
651
|
+
type: "chat";
|
|
644
652
|
chat_id: number | string;
|
|
645
653
|
}
|
|
646
|
-
interface BotCommandScopeChatAdministrators {
|
|
647
|
-
type:
|
|
654
|
+
export interface BotCommandScopeChatAdministrators {
|
|
655
|
+
type: "chat_administrators";
|
|
648
656
|
chat_id: number | string;
|
|
649
657
|
}
|
|
650
|
-
interface BotCommandScopeChatMember {
|
|
651
|
-
type:
|
|
658
|
+
export interface BotCommandScopeChatMember {
|
|
659
|
+
type: "chat_member";
|
|
652
660
|
chat_id: number | string;
|
|
653
661
|
user_id: number;
|
|
654
662
|
}
|