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>MessageMediaDocument_

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

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

Constructors

new
MessageMediaDocument_(params?: { nopremium?: true; spoiler?: true; video?: true; round?: true; voice?: true; document?: enums.Document; alt_document?: enums.Document; ttl_seconds?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
alt_document: enums.Document

Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using H.264 (in MPEG4 transport) at a lower resolution than document.

optional
document: enums.Document

Attached document

optional
nopremium: true

Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.

optional
round: true

Whether this is a round video.

optional
spoiler: true

Whether this media should be hidden behind a spoiler warning

optional
ttl_seconds: number

Time to live of self-destructing document

optional
video: true

Whether this is a video.

optional
voice: true

Whether this is a voice message.

Static Properties

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