30 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 contains information about a chat boost. https://core.telegram.org/bots/api#chatboost.
std::string boostId
Unique identifier of the boost.
std::time_t expirationDate
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegra...
Ptr< ChatBoostSource > source
Source of the added boost.
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::time_t addDate
Point in time (Unix timestamp) when the chat was boosted.
ChatBoost(const nl::json &json)