A document file block to be sent (Bot API 10.3+).
The docs type document as InputMediaDocument only — a bare file_id string is not a valid value, matching the sibling photo, video, animation and audio blocks.
document
InputMediaDocument
file_id
photo
video
animation
audio
Telegram Bot API: InputRichBlockDocument
Optional
Caption of the block.
The document. Caption is ignored.
Type of the block, always 'document'.
A document file block to be sent (Bot API 10.3+).
Remarks
The docs type
documentasInputMediaDocumentonly — a barefile_idstring is not a valid value, matching the siblingphoto,video,animationandaudioblocks.See
Telegram Bot API: InputRichBlockDocument