tgbotxx 1.2.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ChatMemberOwner Struct Reference

Represents a chat member that owns the chat and has all administrator privileges. https://core.telegram.org/bots/api#chatmemberowner. More...

#include <ChatMember.hpp>

Inheritance diagram for tgbotxx::ChatMemberOwner:
tgbotxx::ChatMember

Public Member Functions

 ChatMemberOwner ()
 
 ChatMemberOwner (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::ChatMember
 ChatMember ()=default
 
 ChatMember (const nl::json &json)
 
virtual ~ChatMember ()=default
 

Public Attributes

bool isAnonymous {}
 True, if the user's presence in the chat is hidden.
 
std::string customTitle
 Optional. Custom title for this user.
 
- Public Attributes inherited from tgbotxx::ChatMember
std::string status
 The member's status in the chat.
 
Ptr< Useruser
 Information about the user.
 

Detailed Description

Represents a chat member that owns the chat and has all administrator privileges. https://core.telegram.org/bots/api#chatmemberowner.

Definition at line 45 of file ChatMember.hpp.

Constructor & Destructor Documentation

◆ ChatMemberOwner() [1/2]

tgbotxx::ChatMemberOwner::ChatMemberOwner ( )
inline

Definition at line 46 of file ChatMember.hpp.

◆ ChatMemberOwner() [2/2]

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

Definition at line 49 of file ChatMember.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::ChatMember.

Definition at line 69 of file ChatMember.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::ChatMember.

Definition at line 61 of file ChatMember.hpp.

Member Data Documentation

◆ customTitle

std::string tgbotxx::ChatMemberOwner::customTitle

Optional. Custom title for this user.

Definition at line 57 of file ChatMember.hpp.

◆ isAnonymous

bool tgbotxx::ChatMemberOwner::isAnonymous {}

True, if the user's presence in the chat is hidden.

Definition at line 54 of file ChatMember.hpp.


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