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

Represents the scope of bot commands, covering a specific member of a group or supergroup chat. More...

#include <BotCommandScope.hpp>

Inheritance diagram for tgbotxx::BotCommandScopeChatMember:
tgbotxx::BotCommandScope

Public Member Functions

 BotCommandScopeChatMember ()
 
 BotCommandScopeChatMember (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...
 
std::int64_t userId {}
 Unique identifier of the target user. More...
 
- Public Attributes inherited from tgbotxx::BotCommandScope
std::string type
 Scope type. More...
 

Detailed Description

Represents the scope of bot commands, covering a specific member of a group or supergroup chat.

Definition at line 131 of file BotCommandScope.hpp.

Constructor & Destructor Documentation

◆ BotCommandScopeChatMember() [1/2]

tgbotxx::BotCommandScopeChatMember::BotCommandScopeChatMember ( )
inline

Definition at line 132 of file BotCommandScope.hpp.

◆ BotCommandScopeChatMember() [2/2]

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

Definition at line 135 of file BotCommandScope.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::BotCommandScope.

Definition at line 151 of file BotCommandScope.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::BotCommandScope.

Definition at line 144 of file BotCommandScope.hpp.

Member Data Documentation

◆ chatId

std::int64_t tgbotxx::BotCommandScopeChatMember::chatId {}

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

Definition at line 140 of file BotCommandScope.hpp.

◆ userId

std::int64_t tgbotxx::BotCommandScopeChatMember::userId {}

Unique identifier of the target user.

Definition at line 142 of file BotCommandScope.hpp.


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