tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ChatMemberMember Struct Reference

Represents a chat member that has no additional privileges or restrictions. https://core.telegram.org/bots/api#chatmembermember. More...

#include <ChatMember.hpp>

Inheritance diagram for tgbotxx::ChatMemberMember:
tgbotxx::ChatMember

Public Member Functions

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

std::string tag
 Optional. Tag of the member.
 
std::time_t untilDate {}
 Optional. Date when the user's subscription will expire; Unix time.
 
- 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 has no additional privileges or restrictions. https://core.telegram.org/bots/api#chatmembermember.

Definition at line 202 of file ChatMember.hpp.

Constructor & Destructor Documentation

◆ ChatMemberMember() [1/2]

tgbotxx::ChatMemberMember::ChatMemberMember ( )
inline

Definition at line 203 of file ChatMember.hpp.

◆ ChatMemberMember() [2/2]

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

Definition at line 206 of file ChatMember.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::ChatMember.

Definition at line 226 of file ChatMember.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::ChatMember.

Definition at line 218 of file ChatMember.hpp.

Member Data Documentation

◆ tag

std::string tgbotxx::ChatMemberMember::tag

Optional. Tag of the member.

Definition at line 211 of file ChatMember.hpp.

◆ untilDate

std::time_t tgbotxx::ChatMemberMember::untilDate {}

Optional. Date when the user's subscription will expire; Unix time.

Definition at line 214 of file ChatMember.hpp.


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