29 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, 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.
This object represents a service message about the completion of a giveaway without public winners....
Ptr< Message > giveawayMessage
Optional. Message with the giveaway that was completed.
nl::json toJson() const
Serializes this object to JSON.
GiveawayCompleted()=default
bool isStarGiveaway
Optional. True, if the giveaway is a Telegram Star giveaway.
GiveawayCompleted(const nl::json &json)
std::int32_t winnerCount
Number of winners in the giveaway.
std::int32_t unclaimedPrizeCount
Optional. Number of undistributed prizes.
void fromJson(const nl::json &json)
Deserializes this object from JSON.