Animation
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.
This is an alias for the AnimationUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "animation" | |
duration | number | Duration of the animation, in seconds; as defined by the sender |
width | number | Width of the animation |
height | number | Height of the animation |
fileName | string | Original name of the file; as defined by the sender |
mimeType | string | MIME type of the file, usually "image/gif" or "video/mp4" |
hasStickers | boolean | True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets |
minithumbnail | Animation minithumbnail; may be null | |
thumbnail | Animation thumbnail in JPEG or MPEG4 format; may be null | |
animation | File containing the animation |