9 explicit Dice(
const nl::json& json) {
23 nl::json json = nl::json::object();
#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 an animated emoji that displays a random value. https://core....
Dice(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string emoji
Emoji on which the dice throw animation is based.
std::int32_t value
Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji,...