Voice

class bale.Voice(file_id, file_unique_id, file_name=MissingValue, mime_type=MissingValue, file_size=MissingValue)

Bases: BaseFile

This object shows a Voice.

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

file_name

Original voice filename as defined by sender.

Type:

str, optional

mime_type

MIME type of file as defined by sender.

Type:

str, optional

file_size

File size in bytes, if known.

Type:

int, optional