18 std::vector<std::vector<Ptr<PhotoSize>>>
photos;
24 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_SERIALIZE_FIELD_PTR_ARRAY_ARRAY(json, json_field, array_array_field)
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY_ARRAY(json, json_field, array_array_field, optional)
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object represent a user's profile pictures. https://core.telegram.org/bots/api#userprofilephotos...
std::vector< std::vector< Ptr< PhotoSize > > > photos
Requested profile pictures (in up to 4 sizes each)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t totalCount
Total number of profile pictures the target user has.
UserProfilePhotos()=default
UserProfilePhotos(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.