26 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#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 contains information about one answer option in a poll. https://core.telegram....
std::vector< Ptr< MessageEntity > > textEntities
Optional. Special entities that appear in the option text. Currently, only custom emoji entities are ...
std::string text
Option text, 1-100 characters.
std::int32_t voterCount
Number of users that voted for this option.
PollOption(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.