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

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

Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message.

Constructors

new
InputMediaWebPage_(params: { force_large_media?: true; force_small_media?: true; optional?: true; url: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
force_large_media: true

If set, specifies that a large media preview should be used.

optional
force_small_media: true

If set, specifies that a small media preview should be used.

optional
optional: true

If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead).

url: string

The URL to use for the link preview.

Static Properties

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