28 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 a chat photo. https://core.telegram.org/bots/api#chatphoto.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string smallFileUniqueId
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and ...
std::string bigFileId
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and onl...
std::string bigFileUniqueId
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and fo...
nl::json toJson() const
Serializes this object to JSON.
std::string smallFileId
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and o...
ChatPhoto(const nl::json &json)