Inherits InputMessageContent.
An animation message (GIF-style).
Public Fields | |
object_ptr< InputFile > | animation_ |
Animation file to be sent. | |
object_ptr< inputThumbnail > | thumbnail_ |
Animation thumbnail; pass null to skip thumbnail uploading. | |
array< int32 > | added_sticker_file_ids_ |
File identifiers of the stickers added to the animation, if applicable. | |
int32 | duration_ |
Duration of the animation, in seconds. | |
int32 | width_ |
Width of the animation; may be replaced by the server. | |
int32 | height_ |
Height of the animation; may be replaced by the server. | |
object_ptr< formattedText > | caption_ |
Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. | |
bool | show_caption_above_media_ |
True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats. | |
bool | has_spoiler_ |
True, if the animation preview must be covered by a spoiler animation; not supported in secret chats. | |
Public Instance Methods | |
inputMessageAnimation () | |
inputMessageAnimation (object_ptr< InputFile > &&animation_, object_ptr< inputThumbnail > &&thumbnail_, array< int32 > &&added_sticker_file_ids_, int32 duration_, int32 width_, int32 height_, object_ptr< formattedText > &&caption_, bool show_caption_above_media_, bool has_spoiler_) | |
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 = -210404059 |
Identifier uniquely determining a type of the object. | |
An animation message (GIF-style).
inputMessageAnimation | ( | object_ptr< InputFile > && | animation_, |
object_ptr< inputThumbnail > && | thumbnail_, | ||
array< int32 > && | added_sticker_file_ids_, | ||
int32 | duration_, | ||
int32 | width_, | ||
int32 | height_, | ||
object_ptr< formattedText > && | caption_, | ||
bool | show_caption_above_media_, | ||
bool | has_spoiler_ | ||
) |
An animation message (GIF-style).
[in] | animation_ | Animation file to be sent. |
[in] | thumbnail_ | Animation thumbnail; pass null to skip thumbnail uploading. |
[in] | added_sticker_file_ids_ | File identifiers of the stickers added to the animation, if applicable. |
[in] | duration_ | Duration of the animation, in seconds. |
[in] | width_ | Width of the animation; may be replaced by the server. |
[in] | height_ | Height of the animation; may be replaced by the server. |
[in] | caption_ | Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. |
[in] | show_caption_above_media_ | True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats. |
[in] | has_spoiler_ | True, if the animation preview must be covered by a spoiler animation; not supported in secret chats. |
|
finalvirtual |