32 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 reaction changes on a message with anonymous reactions. https://core....
std::time_t date
Date of the change in Unix time.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
MessageReactionCountUpdated()=default
Ptr< Chat > chat
The chat containing the message.
MessageReactionCountUpdated(const nl::json &json)
std::vector< Ptr< ReactionCount > > reactions
List of reactions that are present on the message.
nl::json toJson() const
Serializes this object to JSON.
std::int32_t messageId
Unique message identifier inside the chat.