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

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class InputBotInlineMessageMediaWebPage_
import { InputBotInlineMessageMediaWebPage_ } 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 message, or even a standalone link preview without an attached message.

Constructors

new
InputBotInlineMessageMediaWebPage_(params: { invert_media?: true; force_large_media?: true; force_small_media?: true; optional?: true; message: string; entities?: Array<enums.MessageEntity>; url: string; reply_markup?: enums.ReplyMarkup; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
entities: Array<enums.MessageEntity>
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
invert_media: true

If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

message: string

The message, can be empty.

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).

optional
reply_markup: enums.ReplyMarkup

Inline keyboard

url: string

The URL to use for the link preview.

Static Properties

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