messageMediaDocument #

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

Layer 223

messageMediaDocument#52d8ccd9 flags:# nopremium:flags.3?true spoiler:flags.4?true video:flags.6?true round:flags.7?true voice:flags.8?true document:flags.0?Document alt_documents:flags.5?Vector<Document> video_cover:flags.9?Photo video_timestamp:flags.10?int ttl_seconds:flags.2?int = MessageMedia;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
nopremiumflags.3?trueWhether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.
spoilerflags.4?trueWhether this media should be hidden behind a spoiler warning
videoflags.6?trueWhether this is a video.
roundflags.7?trueWhether this is a round video.
voiceflags.8?trueWhether this is a voice message.
documentflags.0?DocumentAttached document
alt_documentsflags.5?Vector<Document>Videos only, contains alternative qualities of the video.
video_coverflags.9?PhotoCustom video cover.
video_timestampflags.10?intStart playing the video at the specified timestamp (seconds).
ttl_secondsflags.2?intTime to live of self-destructing document, can be 0 to disable self-destruction, 0x7FFFFFFF to self-destruct the document immediately after it's played; otherwise self-destructs ttl_seconds after it's played.

Type #

MessageMedia