Audio

class pyrogram.Audio

An audio file to be treated as music by the Telegram clients.

Parameters
  • file_id (str) – Unique identifier for this file.

  • file_ref (str) – Up to date file reference.

  • duration (int) – Duration of the audio in seconds as defined by sender.

  • 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 (int, optional) – Date the audio was sent in Unix time.

  • 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.

  • thumbs (List of Thumbnail, optional) – Thumbnails of the music file album cover.