Raw.messages.RequestWebView
Open a bot mini app, sending over user information after user confirmation.
messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true compact:flags.7?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult;
export namespace Raw {
export namespace messages {
export class RequestWebView {
constructor(params: {
fromBotMenu?: boolean;
silent?: boolean;
compact?: boolean;
peer: Raw.TypeInputPeer;
bot: Raw.TypeInputUser;
url?: string;
startParam?: string;
themeParams?: Raw.TypeDataJSON;
platform: string;
replyTo?: Raw.TypeInputReplyTo;
sendAs?: Raw.TypeInputPeer;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x269dc2c1
Property
fromBotMenu
: boolean or undefinedWhether the webview was opened by clicking on the bot’s menu button.
silent
: boolean or undefinedWhether 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).
compact
: boolean or undefinedpeer
: Raw.TypeInputPeerDialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info ).
bot
: Raw.TypeInputUserBot that owns the web app
url
: string or undefinedWeb app url
startParam
: string or undefinedIf the web app was opened from the attachment menu using a attachment menu deep link, startParam should contain the data from the startattach parameter.
themeParams
: Raw.TypeDataJSON or undefinedTheme parameters
platform
: stringShort name of the application; 0-64 english letters, digits, and underscores
replyTo
: Raw.TypeInputReplyTo or undefinedIf 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.
sendAs
: Raw.TypeInputPeer or undefinedOpen the web app as the specified peer, sending the resulting the message as the specified peer.