-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed setMyCommands and deleteMyCommands methods
- Loading branch information
Showing
5 changed files
with
114 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
export interface IBotCommandScopeBase { | ||
/** | ||
* Scope type | ||
*/ | ||
type: | ||
| "default" | ||
| "all_private_chats" | ||
| "all_group_chats" | ||
| "all_chat_administrators" | ||
| "chat" | ||
| "chat_administrators"; | ||
} | ||
|
||
export interface IBotCommandScopeChat extends IBotCommandScopeBase { | ||
/** | ||
* Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | ||
*/ | ||
chat_id: string | number; | ||
} | ||
|
||
export interface IBotCommandScopeChatAdministrators | ||
extends IBotCommandScopeBase { | ||
/** | ||
* Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | ||
*/ | ||
chat_id: string | number; | ||
} | ||
|
||
export interface IBotCommandScopeChatMember extends IBotCommandScopeBase { | ||
/** | ||
* Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | ||
*/ | ||
chat_id: string | number; | ||
/** | ||
* Unique identifier of the target user | ||
*/ | ||
user_id: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters