Airgram

Guides
/
/
Output types

Animation

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

This is an alias for the AnimationUnion type.


NameTypeDescription
_"animation"
durationnumber Duration of the animation, in seconds; as defined by the sender
widthnumber Width of the animation
heightnumber Height of the animation
fileNamestring Original name of the file; as defined by the sender
mimeTypestring MIME type of the file, usually "image/gif" or "video/mp4"
hasStickersboolean 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