telegram-bot-api-nodejs 1.0.24 → 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 +26 -17
- 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_member?: ChatMemberUpdated;
|
|
111
112
|
chat_join_request?: ChatJoinRequest;
|
|
112
113
|
}
|
|
113
114
|
export interface WebhookInfo {
|
|
@@ -602,7 +603,7 @@ export interface ChatInviteLink {
|
|
|
602
603
|
member_limit?: number;
|
|
603
604
|
pending_join_request_count?: number;
|
|
604
605
|
}
|
|
605
|
-
interface Game {
|
|
606
|
+
export interface Game {
|
|
606
607
|
title: string;
|
|
607
608
|
description: string;
|
|
608
609
|
photo: PhotoSize[];
|
|
@@ -621,33 +622,41 @@ export interface Animation extends FileBase {
|
|
|
621
622
|
mime_type?: string;
|
|
622
623
|
}
|
|
623
624
|
type CallbackGame = object;
|
|
624
|
-
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 {
|
|
625
634
|
command: string;
|
|
626
635
|
description: string;
|
|
627
636
|
}
|
|
628
|
-
type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
|
|
629
|
-
interface BotCommandScopeDefault {
|
|
630
|
-
type:
|
|
637
|
+
export type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
|
|
638
|
+
export interface BotCommandScopeDefault {
|
|
639
|
+
type: "default";
|
|
631
640
|
}
|
|
632
|
-
interface BotCommandScopeAllPrivateChats {
|
|
633
|
-
type:
|
|
641
|
+
export interface BotCommandScopeAllPrivateChats {
|
|
642
|
+
type: "all_private_chats";
|
|
634
643
|
}
|
|
635
|
-
interface BotCommandScopeAllGroupChats {
|
|
636
|
-
type:
|
|
644
|
+
export interface BotCommandScopeAllGroupChats {
|
|
645
|
+
type: "all_group_chats";
|
|
637
646
|
}
|
|
638
|
-
interface BotCommandScopeAllChatAdministrators {
|
|
639
|
-
type:
|
|
647
|
+
export interface BotCommandScopeAllChatAdministrators {
|
|
648
|
+
type: "all_chat_administrators";
|
|
640
649
|
}
|
|
641
|
-
interface BotCommandScopeChat {
|
|
642
|
-
type:
|
|
650
|
+
export interface BotCommandScopeChat {
|
|
651
|
+
type: "chat";
|
|
643
652
|
chat_id: number | string;
|
|
644
653
|
}
|
|
645
|
-
interface BotCommandScopeChatAdministrators {
|
|
646
|
-
type:
|
|
654
|
+
export interface BotCommandScopeChatAdministrators {
|
|
655
|
+
type: "chat_administrators";
|
|
647
656
|
chat_id: number | string;
|
|
648
657
|
}
|
|
649
|
-
interface BotCommandScopeChatMember {
|
|
650
|
-
type:
|
|
658
|
+
export interface BotCommandScopeChatMember {
|
|
659
|
+
type: "chat_member";
|
|
651
660
|
chat_id: number | string;
|
|
652
661
|
user_id: number;
|
|
653
662
|
}
|