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

x/mtkruto/tl/3_functions.ts>messages_requestWebView_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_requestWebView_
extends Function_<enums.WebViewResult>
import { messages_requestWebView_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Open a bot mini app, sending over user information after user confirmation.

Constructors

new
messages_requestWebView_(params: { from_bot_menu?: true; silent?: true; peer: enums.InputPeer; bot: enums.InputUser; url?: string; start_param?: string; theme_params?: enums.DataJSON; platform: string; reply_to?: enums.InputReplyTo; send_as?: enums.InputPeer; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
bot: enums.InputUser

Bot that owns the web app

optional
from_bot_menu: true

Whether the webview was opened by clicking on the bot's menu button ».

peer: enums.InputPeer

Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info »).

platform: string

Short name of the application; 0-64 English letters, digits, and underscores

optional
reply_to: enums.InputReplyTo

If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated should be sent in reply to the specified message or story.

optional
send_as: enums.InputPeer

Open the web app as the specified peer, sending the resulting the message as the specified peer.

optional
silent: true

Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated should be sent silently (no notifications for the receivers).

optional
start_param: string

If the web app was opened from the attachment menu using a attachment menu deep link, start_param should contain the data from the startattach parameter.

optional
theme_params: enums.DataJSON
optional
url: string

Static Properties

__F: (params: { from_bot_menu?: true; silent?: true; peer: enums.InputPeer; bot: enums.InputUser; url?: string; start_param?: string; theme_params?: enums.DataJSON; platform: string; reply_to?: enums.InputReplyTo; send_as?: enums.InputPeer; }) => enums.WebViewResult
readonly
[name]: string
readonly
[paramDesc]: ParamDesc