Raw.InputMediaUploadedDocument
New document
inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true spoiler:flags.5?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
export namespace Raw {
export class InputMediaUploadedDocument {
constructor(params: {
nosoundVideo?: boolean;
forceFile?: boolean;
spoiler?: boolean;
file: Raw.TypeInputFile;
thumb?: Raw.TypeInputFile;
mimeType: string;
attributes: Array<Raw.TypeDocumentAttribute>;
stickers?: Array<Raw.TypeInputDocument>;
ttlSeconds?: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x5b38c6c1
Property
nosoundVideo
: boolean or undefinedWhether the specified document is a video file with no audio tracks (a gif animation (even as mpeg4), for example)
forceFile
: boolean or undefinedForce the media file to be uploaded as document
spoiler
: boolean or undefinedWhether this media should be hidden behind a spoiler warning
file
: Raw.TypeInputFileThe uploaded file
thumb
: Raw.TypeInputFile or undefinedThumbnail of the document, uploaded as for the file
mimeType
: stringMime type of document
attributes
: Array of Raw.TypeDocumentAttributeAttributes that specify the type of the document (video, audio, voice, sticker, etc.)
stickers
: Array of Raw.TypeInputDocument or undefinedAttached stickers
ttlSeconds
: number or undefinedTime to live in seconds of self-destructing document