class pyrogram.Voice

A voice note.

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

  • waveform (bytes, optional) – Voice waveform.

  • mime_type (str, optional) – MIME type of the file as defined by sender.

  • file_size (int, optional) – File size.

  • date (int, optional) – Date the voice was sent in Unix time.