Inherits Object.
Describes a user profile photo.
Public Fields | |
int64 | id_ |
Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos. | |
object_ptr< file > | small_ |
A small (160x160) user profile photo. The file can be downloaded only before the photo is changed. | |
object_ptr< file > | big_ |
A big (640x640) user profile photo. The file can be downloaded only before the photo is changed. | |
object_ptr< minithumbnail > | minithumbnail_ |
User profile photo minithumbnail; may be null. | |
bool | has_animation_ |
True, if the photo has animated variant. | |
bool | is_personal_ |
True, if the photo is visible only for the current user. | |
Public Instance Methods | |
profilePhoto () | |
profilePhoto (int64 id_, object_ptr< file > &&small_, object_ptr< file > &&big_, object_ptr< minithumbnail > &&minithumbnail_, bool has_animation_, bool is_personal_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1025754018 |
Identifier uniquely determining a type of the object. | |
profilePhoto | ( | ) |
Describes a user profile photo.
profilePhoto | ( | int64 | id_, |
object_ptr< file > && | small_, | ||
object_ptr< file > && | big_, | ||
object_ptr< minithumbnail > && | minithumbnail_, | ||
bool | has_animation_, | ||
bool | is_personal_ | ||
) |
Describes a user profile photo.
[in] | id_ | Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos. |
[in] | small_ | A small (160x160) user profile photo. The file can be downloaded only before the photo is changed. |
[in] | big_ | A big (640x640) user profile photo. The file can be downloaded only before the photo is changed. |
[in] | minithumbnail_ | User profile photo minithumbnail; may be null. |
[in] | has_animation_ | True, if the photo has animated variant. |
[in] | is_personal_ | True, if the photo is visible only for the current user. |
|
finalvirtual |