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

Inherits Object.

Description

Describes a photo.

Public Fields

bool has_stickers_
 True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets.
 
object_ptr< minithumbnailminithumbnail_
 Photo minithumbnail; may be null.
 
array< object_ptr< photoSize > > sizes_
 Available variants of the photo, in different sizes.
 

Public Instance Methods

 photo ()
 
 photo (bool has_stickers_, object_ptr< minithumbnail > &&minithumbnail_, array< object_ptr< photoSize >> &&sizes_)
 
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 = -2022871583
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ photo() [1/2]

photo ( )

Describes a photo.

◆ photo() [2/2]

photo ( bool  has_stickers_,
object_ptr< minithumbnail > &&  minithumbnail_,
array< object_ptr< photoSize >> &&  sizes_ 
)

Describes a photo.

Parameters
[in]has_stickers_True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets.
[in]minithumbnail_Photo minithumbnail; may be null.
[in]sizes_Available variants of the photo, in different sizes.

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: