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_requestAppWebView_

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

Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.

Constructors

new
messages_requestAppWebView_(params: { write_allowed?: true; peer: enums.InputPeer; app: enums.InputBotApp; start_param?: string; theme_params?: enums.DataJSON; platform: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
app: enums.InputBotApp

The app obtained by invoking messages.getBotApp as specified in the direct Mini App deep link docs.

peer: enums.InputPeer

If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead.

platform: string

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

optional
start_param: string

If the startapp query string parameter is present in the direct Mini App deep link, pass it to start_param.

optional
theme_params: enums.DataJSON
optional
write_allowed: true

Set this flag if the bot is asking permission to send messages to the user as specified in the direct Mini App deep link docs, and the user agreed.

Static Properties

__F: (params: { write_allowed?: true; peer: enums.InputPeer; app: enums.InputBotApp; start_param?: string; theme_params?: enums.DataJSON; platform: string; }) => enums.AppWebViewResult
readonly
[name]: string
readonly
[paramDesc]: ParamDesc