Inherits Object.
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< minithumbnail > | minithumbnail_ |
Animation minithumbnail; may be null. | |
object_ptr< thumbnail > | thumbnail_ |
Animation thumbnail in JPEG or MPEG4 format; may be null. | |
object_ptr< file > | animation_ |
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -872359106 |
Identifier uniquely determining a type of the object. | |
animation | ( | ) |
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.
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.
[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. |
|
finalvirtual |