Skip to main content

inputMediaDocument

Forwarded document

type tg.InputMediaDocument struct { /* ... */ }

Implements InputMedia.

Fields​

NameTypeRequiredDescription
Spoilerbool—Whether this media should be hidden behind a spoiler warning
IDInputDocumentClassyesThe document to be forwarded.
VideoCoverInputPhotoClass—Custom video cover.
VideoTimestampint—Start playing the video at the specified timestamp (seconds).
TTLSecondsint—Time to live of self-destructing document
Querystring—Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.

References​