InputRichBlockAudio

class pyrogram.types.InputRichBlockAudio[source]

An audio block, corresponding to the HTML tag <audio>.

Displays an audio file (music) in the message.

Parameters:
  • audio_id (int, optional) – The id field from an InputDocument that represents an audio file.

  • audio (str | InputMediaAudio, optional) – The audio file to send, as a file identifier of an already uploaded file, a local path, an HTTP URL or an InputMediaAudio object. Given instead of audio_id.

  • caption (str | RichText, optional) – Caption of the block.