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) – The id field from an InputDocument that represents a voice note (a document with the voice attribute set).

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