Audio#
- class pyrogram.types.Audio#
An audio file to be treated as music by the Telegram clients.
- Parameters:
file_id (
str
) – Identifier for this file, which can be used to download or reuse the file.file_unique_id (
str
) – Unique identifier for this file, which is supposed to be the same over time and for different accounts. Can’t be used to download or reuse the file.duration (
int
) – Duration of the audio in seconds as defined by sender.performer (
str
, optional) – Performer of the audio as defined by sender or by audio tags.title (
str
, optional) – Title of the audio as defined by sender or by audio tags.file_name (
str
, optional) – Audio file name.mime_type (
str
, optional) – MIME type of the file as defined by sender.file_size (
int
, optional) – File size.date (
datetime
, optional) – Date the audio was originally sent.thumbs (List of
Thumbnail
, optional) – Thumbnails of the music file album cover.