Skip to content

Animation

Type · TDLib 1.8.67 · d1085f9c

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

Animation(
  duration: int32,
  width: int32,
  height: int32,
  file_name: string,
  mime_type: string,
  has_stickers: Bool,
  minithumbnail: Minithumbnail,
  thumbnail: Thumbnail,
  animation: File
) → Animation

duration

int32

Duration of the animation, in seconds; as defined by the sender

width

int32

Width of the animation

height

int32

Height of the animation

file_name

string

Original name of the file; as defined by the sender

mime_type

string

MIME type of the file, usually "image/gif" or "video/mp4"

has_stickers

Bool

True, if stickers were added to the animation. The list of corresponding sticker sets can be received using getAttachedStickerSets

minithumbnail

Minithumbnail

Animation minithumbnail; may be null

thumbnail

Thumbnail

Animation thumbnail in JPEG or MPEG4 format; may be null

animation

File

File containing the animation