tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents changes in the status of a chat member. https://core.telegram.org/bots/api#chatmemberupdated. More...
#include <ChatMemberUpdated.hpp>
Public Member Functions | |
ChatMemberUpdated ()=default | |
ChatMemberUpdated (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 | |
Ptr< Chat > | chat |
Chat the user belongs to. More... | |
Ptr< User > | from |
Performer of the action, which resulted in the change. More... | |
std::time_t | date {} |
Date the change was done in Unix time. More... | |
Ptr< ChatMember > | oldChatMember |
Previous information about the chat member. More... | |
Ptr< ChatMember > | newChatMember |
New information about the chat member. More... | |
Ptr< ChatInviteLink > | inviteLink |
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only. More... | |
bool | viaChatFolderInviteLink {} |
Optional. True, if the user joined the chat via a chat folder invite link. More... | |
This object represents changes in the status of a chat member. https://core.telegram.org/bots/api#chatmemberupdated.
Definition at line 13 of file ChatMemberUpdated.hpp.
|
default |
|
inlineexplicit |
Definition at line 15 of file ChatMemberUpdated.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 55 of file ChatMemberUpdated.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 42 of file ChatMemberUpdated.hpp.
Chat the user belongs to.
Definition at line 20 of file ChatMemberUpdated.hpp.
std::time_t tgbotxx::ChatMemberUpdated::date {} |
Date the change was done in Unix time.
Definition at line 26 of file ChatMemberUpdated.hpp.
Performer of the action, which resulted in the change.
Definition at line 23 of file ChatMemberUpdated.hpp.
Ptr<ChatInviteLink> tgbotxx::ChatMemberUpdated::inviteLink |
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
Definition at line 35 of file ChatMemberUpdated.hpp.
Ptr<ChatMember> tgbotxx::ChatMemberUpdated::newChatMember |
New information about the chat member.
Definition at line 32 of file ChatMemberUpdated.hpp.
Ptr<ChatMember> tgbotxx::ChatMemberUpdated::oldChatMember |
Previous information about the chat member.
Definition at line 29 of file ChatMemberUpdated.hpp.
bool tgbotxx::ChatMemberUpdated::viaChatFolderInviteLink {} |
Optional. True, if the user joined the chat via a chat folder invite link.
Definition at line 38 of file ChatMemberUpdated.hpp.