25 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.
Describes the birthdate of a user. https://core.telegram.org/bots/api#birthdate.
Birthdate(const nl::json &json)
std::int32_t month
Month of the user's birth; 1-12.
std::int32_t year
Optional. Year of the user's birth.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t day
Day of the user's birth; 1-31.
nl::json toJson() const
Serializes this object to JSON.