Interface BotCommandScope
-
- All Superinterfaces:
BotApiObject
,Serializable
,Validable
- All Known Implementing Classes:
BotCommandScopeAllChatAdministrators
,BotCommandScopeAllGroupChats
,BotCommandScopeAllPrivateChats
,BotCommandScopeChat
,BotCommandScopeChatAdministrators
,BotCommandScopeChatMember
,BotCommandScopeDefault
public interface BotCommandScope extends BotApiObject, Validable
- Version:
- 5.3 This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: BotCommandScopeDefault BotCommandScopeAllPrivateChats BotCommandScopeAllGroupChats BotCommandScopeAllChatAdministrators BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatMember The following algorithm is used to determine the list of commands for a particular user viewing the bot menu. The first list of commands which is set is returned: Commands in the chat with the bot botCommandScopeChat + language_code botCommandScopeChat botCommandScopeAllPrivateChats + language_code botCommandScopeAllPrivateChats botCommandScopeDefault + language_code botCommandScopeDefault Commands in group and supergroup chats botCommandScopeChatMember + language_code botCommandScopeChatMember botCommandScopeChatAdministrators + language_code (admins only) botCommandScopeChatAdministrators (admins only) botCommandScopeChat + language_code botCommandScopeChat botCommandScopeAllChatAdministrators + language_code (admins only) botCommandScopeAllChatAdministrators (admins only) botCommandScopeAllGroupChats + language_code botCommandScopeAllGroupChats botCommandScopeDefault + language_code botCommandScopeDefault
- Author:
- Ruben Bermudez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getType()
-
-
-
Method Detail
-
getType
String getType()
-
-