InputRichBlockVoiceNote

class pyrogram.types.InputRichBlockVoiceNote[source]

A voice note block, corresponding to the HTML tag <audio>.

Displays a voice recording in the message.

Parameters:
  • audio_id (int, optional) – The id field from an InputDocument that represents a voice note (a document with the voice attribute set).

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

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