22 nl::json json = nl::json::object();
33 void _fromJson(
const nl::json& json) {
#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.
The reaction is based on a custom emoji. https://core.telegram.org/bots/api#reactiontypecustomemoji.
void fromJson(const nl::json &json) override
Deserializes this object from JSON.
std::string customEmojiId
Custom emoji identifier.
nl::json toJson() const override
Serializes this object to JSON.
ReactionTypeCustomEmoji(const nl::json &json)
ReactionTypeCustomEmoji()
The reaction is based on an emoji. https://core.telegram.org/bots/api#reactiontypeemoji.
ReactionTypeEmoji(const nl::json &json)
void fromJson(const nl::json &json) override
Deserializes this object from JSON.
nl::json toJson() const override
Serializes this object to JSON.
std::string emoji
Reaction emoji. Currently,it can be one of "👍", "👎", "❤", "🔥", "🥰", "👏", "😁", "🤔",...
This object describes the type of a reaction. Currently, it can be one of:
virtual void fromJson(const nl::json &json)
Deserializes this object from JSON.
virtual nl::json toJson() const
Serializes this object to JSON.
std::string type
Type of the reaction, one of “emoji”, "custom_emoji.
ReactionType(const nl::json &json)