Video

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

Bases: BaseFile

This object shows a Video.

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

Video width as defined by sender.

Type:

int

height

Video height as defined by sender.

Type:

str

duration

Duration of the video in seconds as defined by sender.

Type:

int

file_name

Original video 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]