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

Inherits Object.

Description

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

Public Fields

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.
 

Public Instance Methods

 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 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 = -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 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.

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