Animation

class bale.Animation(file_id, file_unique_id, width, height, duration, file_name, thumbnail, mime_type, file_size)

Bases: BaseFile

This object shows an Animation.

file_id

Identifier for this file, which can be used to download or reuse the file.

Type:

str

file_unique_id

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.

Type:

str

width

Animation width as defined by sender.

Type:

int

height

Animation height as defined by sender.

Type:

str

duration

Duration of the animation in seconds as defined by sender.

Type:

int

thumbnail

Animation thumbnail as defined by sender.

Type:

Optional[bale.PhotoSize]

file_name

Original animation filename as defined by sender.

Type:

Optional[str]

mime_type

MIME type of file as defined by sender.

Type:

Optional[str]

file_size

File size in bytes, if known.

Type:

Optional[int]