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

Represents the scope of bot commands, covering a specific chat. More...

#include <BotCommandScope.hpp>

Inheritance diagram for tgbotxx::BotCommandScopeChat:
tgbotxx::BotCommandScope

Public Member Functions

 BotCommandScopeChat ()
 
 BotCommandScopeChat (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::BotCommandScope
 BotCommandScope ()=default
 
 BotCommandScope (const nl::json &json)
 
virtual ~BotCommandScope ()=default
 

Public Attributes

std::int64_t chatId {}
 Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) More...
 
- Public Attributes inherited from tgbotxx::BotCommandScope
std::string type
 Scope type. More...
 

Detailed Description

Represents the scope of bot commands, covering a specific chat.

Definition at line 83 of file BotCommandScope.hpp.

Constructor & Destructor Documentation

◆ BotCommandScopeChat() [1/2]

tgbotxx::BotCommandScopeChat::BotCommandScopeChat ( )
inline

Definition at line 84 of file BotCommandScope.hpp.

◆ BotCommandScopeChat() [2/2]

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

Definition at line 87 of file BotCommandScope.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::BotCommandScopeChat::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::BotCommandScope.

Definition at line 100 of file BotCommandScope.hpp.

◆ toJson()

nl::json tgbotxx::BotCommandScopeChat::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::BotCommandScope.

Definition at line 94 of file BotCommandScope.hpp.

Member Data Documentation

◆ chatId

std::int64_t tgbotxx::BotCommandScopeChat::chatId {}

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

Definition at line 92 of file BotCommandScope.hpp.


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