Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>InputMediaUploadedDocument_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class InputMediaUploadedDocument_
extends _InputMedia_
import { InputMediaUploadedDocument_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

New document

Constructors

new
InputMediaUploadedDocument_(params: { nosound_video?: true; force_file?: true; spoiler?: true; file: enums.InputFile; thumb?: enums.InputFile; mime_type: string; attributes: Array<enums.DocumentAttribute>; stickers?: Array<enums.InputDocument>; ttl_seconds?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
attributes: Array<enums.DocumentAttribute>

Attributes that specify the type of the document (video, audio, voice, sticker, etc.)

file: enums.InputFile
optional
force_file: true

Force the media file to be uploaded as document

mime_type: string

MIME type of document

optional
nosound_video: true

Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)

optional
spoiler: true

Whether this media should be hidden behind a spoiler warning

optional
stickers: Array<enums.InputDocument>

Attached stickers

optional
thumb: enums.InputFile

Thumbnail of the document, uploaded as for the file

optional
ttl_seconds: number

Time to live in seconds of self-destructing document

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc