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_requestSimpleWebView_

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

Open a bot mini app.

Constructors

new
messages_requestSimpleWebView_(params: { from_switch_webview?: true; from_side_menu?: true; bot: enums.InputUser; url?: string; start_param?: string; theme_params?: enums.DataJSON; platform: string; })

Properties

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

Bot that owns the mini app

optional
from_side_menu: true

Set this flag if opening the Mini App from the installed side menu entry » or from a Mini App link ».

optional
from_switch_webview: true

Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by messages.getInlineBotResults.

platform: string

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

optional
start_param: string

Start parameter, if opening from a Mini App link ».

optional
theme_params: enums.DataJSON
optional
url: string

Web app URL, if opening from a keyboard button or inline result

Static Properties

__F: (params: { from_switch_webview?: true; from_side_menu?: true; bot: enums.InputUser; url?: string; start_param?: string; theme_params?: enums.DataJSON; platform: string; }) => enums.SimpleWebViewResult
readonly
[name]: string
readonly
[paramDesc]: ParamDesc