Audio

class bale.Audio(file_id, duration=None, file_size=None, bot=None, mime_type=None, title=None)

Bases: File

This object shows an Audio.

file_id

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

Type:

str

duration

Duration of the audio in seconds as defined by sender.

Type:

int

file_size

File size in bytes.

Type:

int

mime_type

MIME type of the file as defined by sender.

Type:

Optional[str]

title

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

Type:

Optional[str]