BotCommandScope

@Serializable
sealed class BotCommandScope

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

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "all_chat_administrators")
class AllChatAdministrators : BotCommandScope
Link copied to clipboard
@Serializable
@SerialName(value = "all_group_chats")
class AllGroupChats : BotCommandScope
Link copied to clipboard
@Serializable
@SerialName(value = "all_private_chats")
class AllPrivateChats : BotCommandScope
Link copied to clipboard
@Serializable
@SerialName(value = "chat_administrators")
data class ChatAdministrators(val chatId: Long) : BotCommandScope
Link copied to clipboard
@Serializable
@SerialName(value = "chat_member")
data class ChatMember(val chatId: Long, val userId: Long) : BotCommandScope
Link copied to clipboard
@Serializable
@SerialName(value = "chat")
data class ChatScope(val chatId: Long) : BotCommandScope
Link copied to clipboard
@Serializable
@SerialName(value = "default")
class Default : BotCommandScope

Properties

Link copied to clipboard