List of all members | Public Fields | Public Instance Methods | Static Public Attributes
chatPhoto Class Referencefinal

Inherits Object.

Description

Describes a chat or user profile photo.

Public Fields

int64 id_
 Unique photo identifier.
 
int32 added_date_
 Point in time (Unix timestamp) when the photo has been added.
 
object_ptr< minithumbnailminithumbnail_
 Photo minithumbnail; may be null.
 
array< object_ptr< photoSize > > sizes_
 Available variants of the photo in JPEG format, in different size.
 
object_ptr< animatedChatPhotoanimation_
 Animated variant of the photo in MPEG4 format; may be null.
 

Public Instance Methods

 chatPhoto ()
 
 chatPhoto (int64 id_, int32 added_date_, object_ptr< minithumbnail > &&minithumbnail_, array< object_ptr< photoSize >> &&sizes_, object_ptr< animatedChatPhoto > &&animation_)
 
std::int32_t get_id () const final
 
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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = -113003577
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ chatPhoto() [1/2]

chatPhoto ( )

Describes a chat or user profile photo.

◆ chatPhoto() [2/2]

chatPhoto ( int64  id_,
int32  added_date_,
object_ptr< minithumbnail > &&  minithumbnail_,
array< object_ptr< photoSize >> &&  sizes_,
object_ptr< animatedChatPhoto > &&  animation_ 
)

Describes a chat or user profile photo.

Parameters
[in]id_Unique photo identifier.
[in]added_date_Point in time (Unix timestamp) when the photo has been added.
[in]minithumbnail_Photo minithumbnail; may be null.
[in]sizes_Available variants of the photo in JPEG format, in different size.
[in]animation_Animated variant of the photo in MPEG4 format; may be null.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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