tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::chatPhoto Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::chatPhoto:
td::td_api::Object td::TlObject

Public Member Functions

 chatPhoto ()
 
 chatPhoto (int64 id_, int32 added_date_, object_ptr< minithumbnail > &&minithumbnail_, array< object_ptr< photoSize > > &&sizes_, object_ptr< animatedChatPhoto > &&animation_, object_ptr< animatedChatPhoto > &&small_animation_, object_ptr< chatPhotoSticker > &&sticker_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

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_
 A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.
 
object_ptr< animatedChatPhotosmall_animation_
 A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available.
 
object_ptr< chatPhotoStickersticker_
 Sticker-based version of the chat photo; may be null.
 

Static Public Attributes

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

Detailed Description

Describes a chat or user profile photo.

Definition at line 14836 of file td_api.h.

Constructor & Destructor Documentation

◆ chatPhoto() [1/2]

td::td_api::chatPhoto::chatPhoto ( )

Describes a chat or user profile photo.

◆ chatPhoto() [2/2]

td::td_api::chatPhoto::chatPhoto ( int64  id_,
int32  added_date_,
object_ptr< minithumbnail > &&  minithumbnail_,
array< object_ptr< photoSize > > &&  sizes_,
object_ptr< animatedChatPhoto > &&  animation_,
object_ptr< animatedChatPhoto > &&  small_animation_,
object_ptr< chatPhotoSticker > &&  sticker_ 
)

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_A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.
[in]small_animation_A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available.
[in]sticker_Sticker-based version of the chat photo; may be null.

Member Function Documentation

◆ store()

void td::td_api::chatPhoto::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 td::TlObject.

Member Data Documentation

◆ added_date_

int32 td::td_api::chatPhoto::added_date_

Point in time (Unix timestamp) when the photo has been added.

Definition at line 14849 of file td_api.h.

◆ animation_

object_ptr<animatedChatPhoto> td::td_api::chatPhoto::animation_

A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.

Definition at line 14855 of file td_api.h.

◆ ID

const std::int32_t td::td_api::chatPhoto::ID = -1430870201
static

Identifier uniquely determining a type of the object.

Definition at line 14880 of file td_api.h.

◆ id_

int64 td::td_api::chatPhoto::id_

Unique photo identifier.

Definition at line 14847 of file td_api.h.

◆ minithumbnail_

object_ptr<minithumbnail> td::td_api::chatPhoto::minithumbnail_

Photo minithumbnail; may be null.

Definition at line 14851 of file td_api.h.

◆ sizes_

array<object_ptr<photoSize> > td::td_api::chatPhoto::sizes_

Available variants of the photo in JPEG format, in different size.

Definition at line 14853 of file td_api.h.

◆ small_animation_

object_ptr<animatedChatPhoto> td::td_api::chatPhoto::small_animation_

A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available.

Definition at line 14857 of file td_api.h.

◆ sticker_

object_ptr<chatPhotoSticker> td::td_api::chatPhoto::sticker_

Sticker-based version of the chat photo; may be null.

Definition at line 14859 of file td_api.h.


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