Layer 220
constructor
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

Name Type Description
Flags # Flags, see TL conditional fields
Nopremium flags.3?true Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.
Spoiler flags.4?true Whether this media should be hidden behind a spoiler warning
Video flags.6?true Whether this is a video.
Round flags.7?true Whether this is a round video.
Voice flags.8?true Whether this is a voice message.
Document flags.0?Document Attached document
AltDocuments Vector<Document> Videos only, contains alternative qualities of the video.
VideoCover flags.9?Photo Custom video cover.
VideoTimestamp flags.10?int Start playing the video at the specified timestamp (seconds).
TtlSeconds flags.2?int Time to live of self-destructing document

Returns

MessageMedia

Gogram Example

// Creating MessageMediaDocument constructor
obj := &tg.MessageMediaDocument{

    // Optional fields:
    // Nopremium: true,
    // Spoiler: true,
    // Video: true,
    // Round: true,
    // ... more optional fields
}