inputMediaDocument
Forwarded document
type tg.InputMediaDocument struct { /* ... */ }
Implements InputMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Spoiler | bool | — | Whether this media should be hidden behind a spoiler warning |
ID | InputDocumentClass | yes | The document to be forwarded. |
VideoCover | InputPhotoClass | — | Custom video cover. |
VideoTimestamp | int | — | Start playing the video at the specified timestamp (seconds). |
TTLSeconds | int | — | Time to live of self-destructing document |
Query | string | — | Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance. |
References
- Official documentation
- Generated Go reference
- TL definition:
inputMediaDocument#a8763ab5