tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::UserProfilePhotos Struct Reference

This object represent a user's profile pictures. https://core.telegram.org/bots/api#userprofilephotos. More...

#include <UserProfilePhotos.hpp>

Public Member Functions

 UserProfilePhotos ()=default
 
 UserProfilePhotos (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::int32_t totalCount {}
 Total number of profile pictures the target user has. More...
 
std::vector< std::vector< Ptr< PhotoSize > > > photos
 Requested profile pictures (in up to 4 sizes each) More...
 

Detailed Description

This object represent a user's profile pictures. https://core.telegram.org/bots/api#userprofilephotos.

Definition at line 8 of file UserProfilePhotos.hpp.

Constructor & Destructor Documentation

◆ UserProfilePhotos() [1/2]

tgbotxx::UserProfilePhotos::UserProfilePhotos ( )
default

◆ UserProfilePhotos() [2/2]

tgbotxx::UserProfilePhotos::UserProfilePhotos ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file UserProfilePhotos.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::UserProfilePhotos::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 31 of file UserProfilePhotos.hpp.

◆ toJson()

nl::json tgbotxx::UserProfilePhotos::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file UserProfilePhotos.hpp.

Member Data Documentation

◆ photos

std::vector<std::vector<Ptr<PhotoSize> > > tgbotxx::UserProfilePhotos::photos

Requested profile pictures (in up to 4 sizes each)

Definition at line 18 of file UserProfilePhotos.hpp.

◆ totalCount

std::int32_t tgbotxx::UserProfilePhotos::totalCount {}

Total number of profile pictures the target user has.

Definition at line 15 of file UserProfilePhotos.hpp.


The documentation for this struct was generated from the following file: