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::animation Class Referencefinal

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

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

Public Member Functions

 animation ()
 
 animation (int32 duration_, int32 width_, int32 height_, string const &file_name_, string const &mime_type_, bool has_stickers_, object_ptr< minithumbnail > &&minithumbnail_, object_ptr< thumbnail > &&thumbnail_, object_ptr< file > &&animation_)
 
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

int32 duration_
 Duration of the animation, in seconds; as defined by the sender.
 
int32 width_
 Width of the animation.
 
int32 height_
 Height of the animation.
 
string file_name_
 Original name of the file; as defined by the sender.
 
string mime_type_
 MIME type of the file, usually "image/gif" or "video/mp4".
 
bool has_stickers_
 True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.
 
object_ptr< minithumbnailminithumbnail_
 Animation minithumbnail; may be null.
 
object_ptr< thumbnailthumbnail_
 Animation thumbnail in JPEG or MPEG4 format; may be null.
 
object_ptr< fileanimation_
 File containing the animation.
 

Static Public Attributes

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

Detailed Description

Describes an animation file. The animation must be encoded in GIF or MPEG4 format.

Definition at line 1333 of file td_api.h.

Constructor & Destructor Documentation

◆ animation() [1/2]

td::td_api::animation::animation ( )

Describes an animation file. The animation must be encoded in GIF or MPEG4 format.

◆ animation() [2/2]

td::td_api::animation::animation ( int32  duration_,
int32  width_,
int32  height_,
string const &  file_name_,
string const &  mime_type_,
bool  has_stickers_,
object_ptr< minithumbnail > &&  minithumbnail_,
object_ptr< thumbnail > &&  thumbnail_,
object_ptr< file > &&  animation_ 
)

Describes an animation file. The animation must be encoded in GIF or MPEG4 format.

Parameters
[in]duration_Duration of the animation, in seconds; as defined by the sender.
[in]width_Width of the animation.
[in]height_Height of the animation.
[in]file_name_Original name of the file; as defined by the sender.
[in]mime_type_MIME type of the file, usually "image/gif" or "video/mp4".
[in]has_stickers_True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.
[in]minithumbnail_Animation minithumbnail; may be null.
[in]thumbnail_Animation thumbnail in JPEG or MPEG4 format; may be null.
[in]animation_File containing the animation.

Member Function Documentation

◆ store()

void td::td_api::animation::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

◆ animation_

object_ptr<file> td::td_api::animation::animation_

File containing the animation.

Definition at line 1360 of file td_api.h.

◆ duration_

int32 td::td_api::animation::duration_

Duration of the animation, in seconds; as defined by the sender.

Definition at line 1344 of file td_api.h.

◆ file_name_

string td::td_api::animation::file_name_

Original name of the file; as defined by the sender.

Definition at line 1350 of file td_api.h.

◆ has_stickers_

bool td::td_api::animation::has_stickers_

True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.

Definition at line 1354 of file td_api.h.

◆ height_

int32 td::td_api::animation::height_

Height of the animation.

Definition at line 1348 of file td_api.h.

◆ ID

const std::int32_t td::td_api::animation::ID = -872359106
static

Identifier uniquely determining a type of the object.

Definition at line 1383 of file td_api.h.

◆ mime_type_

string td::td_api::animation::mime_type_

MIME type of the file, usually "image/gif" or "video/mp4".

Definition at line 1352 of file td_api.h.

◆ minithumbnail_

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

Animation minithumbnail; may be null.

Definition at line 1356 of file td_api.h.

◆ thumbnail_

object_ptr<thumbnail> td::td_api::animation::thumbnail_

Animation thumbnail in JPEG or MPEG4 format; may be null.

Definition at line 1358 of file td_api.h.

◆ width_

int32 td::td_api::animation::width_

Width of the animation.

Definition at line 1346 of file td_api.h.


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