tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
The base class of all chat members objects. This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported: ChatMemberOwner ChatMemberAdministrator ChatMemberMember ChatMemberRestricted ChatMemberLeft ChatMemberBanned https://core.telegram.org/bots/api#chatmember. More...
#include <ChatMember.hpp>
Public Member Functions | |
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 | |
std::string | status |
The member's status in the chat. More... | |
Ptr< User > | user |
Information about the user. More... | |
The base class of all chat members objects. This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported: ChatMemberOwner ChatMemberAdministrator ChatMemberMember ChatMemberRestricted ChatMemberLeft ChatMemberBanned https://core.telegram.org/bots/api#chatmember.
Definition at line 15 of file ChatMember.hpp.
|
default |
|
inlineexplicit |
Definition at line 17 of file ChatMember.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 37 of file ChatMember.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 29 of file ChatMember.hpp.
std::string tgbotxx::ChatMember::status |
The member's status in the chat.
Definition at line 22 of file ChatMember.hpp.
Information about the user.
Definition at line 25 of file ChatMember.hpp.