TDLib v0.0.2 TDLib.Object.Animation View Source

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

NameTypeDescription
durationnumberDuration of the animation, in seconds; as defined by the sender.
widthnumberWidth of the animation.
heightnumberHeight of the animation.
file_namestringOriginal name of the file; as defined by the sender.
mime_typestringMIME type of the file, usually “image/gif” or “video/mp4”.
thumbnailphotoSizeAnimation thumbnail; may be null.
animationfileFile containing the animation.

More details on telegram’s documentation.