|
|
|
@ -320,27 +320,27 @@ func (b Btn) Reply() *ReplyButton {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BotCommandParams controls parameters for commands-related methods (setMyCommands, deleteMyCommands and getMyCommands).
|
|
|
|
|
type BotCommandParams struct {
|
|
|
|
|
Commands []Command `json:"commands,omitempty"`
|
|
|
|
|
Scope *BotCommandScope `json:"scope,omitempty"`
|
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
|
// CommandParams controls parameters for commands-related methods (setMyCommands, deleteMyCommands and getMyCommands).
|
|
|
|
|
type CommandParams struct {
|
|
|
|
|
Commands []Command `json:"commands,omitempty"`
|
|
|
|
|
Scope *CommandScope `json:"scope,omitempty"`
|
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BotCommandScope object represents a scope to which bot commands are applied.
|
|
|
|
|
type BotCommandScope struct {
|
|
|
|
|
// CommandScope object represents a scope to which bot commands are applied.
|
|
|
|
|
type CommandScope struct {
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
ChatID int64 `json:"chat_id,omitempty"`
|
|
|
|
|
UserID int64 `json:"user_id,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CommandScope types
|
|
|
|
|
const (
|
|
|
|
|
// BotCommandScope types
|
|
|
|
|
BotCommandScopeDefault = "default"
|
|
|
|
|
BotCommandScopeAllPrivateChats = "all_private_chats"
|
|
|
|
|
BotCommandScopeAllGroupChats = "all_group_chats"
|
|
|
|
|
BotCommandScopeAllChatAdministrators = "all_chat_administrators"
|
|
|
|
|
BotCommandScopeChat = "chat"
|
|
|
|
|
BotCommandScopeChatAdministrators = "chat_administrators"
|
|
|
|
|
BotScopeChatMember = "chat_member"
|
|
|
|
|
CommandScopeDefault = "default"
|
|
|
|
|
CommandScopeAllPrivateChats = "all_private_chats"
|
|
|
|
|
CommandScopeAllGroupChats = "all_group_chats"
|
|
|
|
|
CommandScopeAllChatAdmin = "all_chat_administrators"
|
|
|
|
|
CommandScopeChat = "chat"
|
|
|
|
|
CommandScopeChatAdmin = "chat_administrators"
|
|
|
|
|
CommandScopeChatMember = "chat_member"
|
|
|
|
|
)
|
|
|
|
|