TDLib
Loading...
Searching...
No Matches
animation Class Referencefinal

Inherits Object.

Description

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

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 TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

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

Static Public Attributes

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

Constructor & Destructor Documentation

◆ animation() [1/2]

animation ( )

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

◆ animation() [2/2]

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 sets 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 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: