Skip to main content

messageMediaDocument

Document (video, audio, voice, sticker, any media type except photo)

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

Implements MessageMedia.

Fields​

NameTypeRequiredDescription
Nopremiumbool—Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.
Spoilerbool—Whether this media should be hidden behind a spoiler warning
Videobool—Whether this is a video.
Roundbool—Whether this is a round video.
Voicebool—Whether this is a voice message.
DocumentDocumentClass—Attached document
AltDocuments[]DocumentClass—Videos only, contains alternative qualities of the video.
VideoCoverPhotoClass—Custom video cover.
VideoTimestampint—Start playing the video at the specified timestamp (seconds).
TTLSecondsint—Time to live of self-destructing document

References​