|
tgbotxx 1.2.9.2
Telegram Bot C++ Library
|
Base class of all bot commands scopes 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 https://core.telegram.org/bots/api#botcommandscope. More...
#include <BotCommandScope.hpp>
Public Member Functions | |
| BotCommandScope ()=default | |
| BotCommandScope (const nl::json &json) | |
| virtual | ~BotCommandScope ()=default |
| virtual nl::json | toJson () const |
| virtual void | fromJson (const nl::json &json) |
Public Attributes | |
| std::string | type |
| Scope type. | |
Base class of all bot commands scopes 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 https://core.telegram.org/bots/api#botcommandscope.
Definition at line 15 of file BotCommandScope.hpp.
|
default |
|
inlineexplicit |
Definition at line 17 of file BotCommandScope.hpp.
|
virtualdefault |
Reimplemented in tgbotxx::BotCommandScopeDefault, tgbotxx::BotCommandScopeAllPrivateChats, tgbotxx::BotCommandScopeAllGroupChats, tgbotxx::BotCommandScopeAllChatAdministrators, tgbotxx::BotCommandScopeChat, tgbotxx::BotCommandScopeChatAdministrators, and tgbotxx::BotCommandScopeChatMember.
Definition at line 31 of file BotCommandScope.hpp.
|
inlinevirtual |
Reimplemented in tgbotxx::BotCommandScopeDefault, tgbotxx::BotCommandScopeAllPrivateChats, tgbotxx::BotCommandScopeAllGroupChats, tgbotxx::BotCommandScopeAllChatAdministrators, tgbotxx::BotCommandScopeChat, tgbotxx::BotCommandScopeChatAdministrators, and tgbotxx::BotCommandScopeChatMember.
Definition at line 25 of file BotCommandScope.hpp.
| std::string tgbotxx::BotCommandScope::type |
Scope type.
Definition at line 23 of file BotCommandScope.hpp.