tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::BotCommandScope Struct Reference

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>

Inheritance diagram for tgbotxx::BotCommandScope:
tgbotxx::BotCommandScopeAllChatAdministrators tgbotxx::BotCommandScopeAllGroupChats tgbotxx::BotCommandScopeAllPrivateChats tgbotxx::BotCommandScopeChat tgbotxx::BotCommandScopeChatAdministrators tgbotxx::BotCommandScopeChatMember tgbotxx::BotCommandScopeDefault

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. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BotCommandScope() [1/2]

tgbotxx::BotCommandScope::BotCommandScope ( )
default

◆ BotCommandScope() [2/2]

tgbotxx::BotCommandScope::BotCommandScope ( const nl::json &  json)
inlineexplicit

Definition at line 17 of file BotCommandScope.hpp.

◆ ~BotCommandScope()

virtual tgbotxx::BotCommandScope::~BotCommandScope ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::BotCommandScope::fromJson ( const nl::json &  json)
inlinevirtual

◆ toJson()

virtual nl::json tgbotxx::BotCommandScope::toJson ( ) const
inlinevirtual

Member Data Documentation

◆ type

std::string tgbotxx::BotCommandScope::type

Scope type.

Definition at line 23 of file BotCommandScope.hpp.


The documentation for this struct was generated from the following file: