32 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 one size of a photo or a file / sticker thumbnail. https://core....
std::int64_t fileSize
Optional. File size in bytes.
nl::json toJson() const
Serializes this object to JSON.
std::int32_t width
Photo width.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t height
Photo height.
PhotoSize(const nl::json &json)