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

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

Forwarded document

Constructors

new
InputMediaDocument_(params: { spoiler?: true; id: enums.InputDocument; ttl_seconds?: number; query?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
id: enums.InputDocument

The document to be forwarded.

optional
query: string

Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.

optional
spoiler: true

Whether this media should be hidden behind a spoiler warning

optional
ttl_seconds: number

Time to live of self-destructing document

Static Properties

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