40 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_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.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
This object represents a change of a reaction on a message performed by a user. https://core....
Ptr< Chat > chat
The chat containing the message the user reacted to.
std::vector< Ptr< ReactionType > > newReaction
New list of reaction types that have been set by the user.
std::vector< Ptr< ReactionType > > oldReaction
Previous list of reaction types that were set by the user.
std::time_t date
Date of the change in Unix time.
nl::json toJson() const
Serializes this object to JSON.
std::int32_t messageId
Unique identifier of the message inside the chat.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< Chat > actorChat
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
Ptr< User > user
Optional. The user that changed the reaction, if the user isn't anonymous.
MessageReactionUpdated(const nl::json &json)
MessageReactionUpdated()=default