InputRichBlockDocument

class pyrogram.types.InputRichBlockDocument[source]

A block with a general file, corresponding to the custom HTML tag <tg-document>.

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

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

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