Raw.MessageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
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;
export namespace Raw {
export class MessageMediaDocument {
constructor(params: {
nopremium?: boolean;
spoiler?: boolean;
video?: boolean;
round?: boolean;
voice?: boolean;
document?: Raw.TypeDocument;
altDocuments?: Array<Raw.TypeDocument>;
videoCover?: Raw.TypePhoto;
videoTimestamp?: number;
ttlSeconds?: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0x52d8ccd9
Property
nopremium
: boolean or undefinedWhether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.
spoiler
: boolean or undefinedWhether this media should be hidden behind a spoiler warning
video
: boolean or undefinedWhether this is a video.
round
: boolean or undefinedWhether this is a round video.
voice
: boolean or undefinedWhether this is a voice message.
document
: Raw.TypeDocument or undefinedAttached document
altDocuments
: Array of Raw.TypeDocument or undefinedVideos only, contains alternative qualities of the video.
videoCover
: Raw.TypePhoto or undefinedvideoTimestamp
: number or undefinedttlSeconds
: number or undefinedTime to live of self-destructing document