Skip to main content

inputMediaDocument

Forwarded document

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

Implements InputMedia.

Fields

NameTypeRequiredDescription
SpoilerboolWhether this media should be hidden behind a spoiler warning
IDInputDocumentClassyesThe document to be forwarded.
VideoCoverInputPhotoClassCustom video cover.
VideoTimestampintStart playing the video at the specified timestamp (seconds).
TTLSecondsintTime to live of self-destructing document
QuerystringText query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.

References