messageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
type tg.MessageMediaDocument struct { /* ... */ }
Implements MessageMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Nopremium | bool | — | Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played. |
Spoiler | bool | — | Whether this media should be hidden behind a spoiler warning |
Video | bool | — | Whether this is a video. |
Round | bool | — | Whether this is a round video. |
Voice | bool | — | Whether this is a voice message. |
Document | DocumentClass | — | Attached document |
AltDocuments | []DocumentClass | — | Videos only, contains alternative qualities of the video. |
VideoCover | PhotoClass | — | Custom video cover. |
VideoTimestamp | int | — | Start playing the video at the specified timestamp (seconds). |
TTLSeconds | int | — | Time to live of self-destructing document |
References
- Official documentation
- Generated Go reference
- TL definition:
messageMediaDocument#52d8ccd9