43 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object represents changes in the status of a chat member. https://core.telegram....
Ptr< ChatInviteLink > inviteLink
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link e...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
bool viaChatFolderInviteLink
Optional. True, if the user joined the chat via a chat folder invite link.
ChatMemberUpdated()=default
std::time_t date
Date the change was done in Unix time.
Ptr< ChatMember > oldChatMember
Previous information about the chat member.
Ptr< Chat > chat
Chat the user belongs to.
Ptr< ChatMember > newChatMember
New information about the chat member.
ChatMemberUpdated(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
Ptr< User > from
Performer of the action, which resulted in the change.