Skip to main content

messageMediaDocument

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

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

Implements MessageMedia.

Fields

NameTypeRequiredDescription
NopremiumboolWhether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.
SpoilerboolWhether this media should be hidden behind a spoiler warning
VideoboolWhether this is a video.
RoundboolWhether this is a round video.
VoiceboolWhether this is a voice message.
DocumentDocumentClassAttached document
AltDocuments[]DocumentClassVideos only, contains alternative qualities of the video.
VideoCoverPhotoClassCustom video cover.
VideoTimestampintStart playing the video at the specified timestamp (seconds).
TTLSecondsintTime to live of self-destructing document

References