tgbotxx  1.1.6.9
Telegram Bot C++ Library
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 ()=default
 
 ChatMemberOwner (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 
- Public Member Functions inherited from tgbotxx::ChatMember
 ChatMember ()=default
 
 ChatMember (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

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

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 ( )
default

◆ ChatMemberOwner() [2/2]

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

Definition at line 47 of file ChatMember.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 68 of file ChatMember.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 60 of file ChatMember.hpp.

Member Data Documentation

◆ customTitle

std::string tgbotxx::ChatMemberOwner::customTitle

Optional. Custom title for this user.

Definition at line 56 of file ChatMember.hpp.

◆ isAnonymous

bool tgbotxx::ChatMemberOwner::isAnonymous {}

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

Definition at line 53 of file ChatMember.hpp.


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