Audio

class bale.Audio(file_id, file_unique_id, duration, file_name, title, mime_type, file_size)

Bases: BaseFile

This object shows an Audio.

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

duration

Duration of the audio in seconds as defined by sender.

Type:

int

title

Title of the audio as defined by sender or by audio tags.

Type:

Optional[str]

file_name

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