messages.sendWebViewResultMessage #

Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.

Layer 223

webViewMessageSent#c94511c flags:# msg_id:flags.0?InputBotInlineMessageID = WebViewMessageSent;
---functions---
messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent;

Parameters #

NameTypeDescription
bot_query_idstringWebview interaction ID obtained from messages.requestWebView
resultInputBotInlineResultMessage to send

Result #

WebViewMessageSent

Only bots can use this method #

Possible errors #

CodeTypeDescription
400QUERY_ID_INVALIDThe query ID is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.

messages.requestWebView #

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

After calling this method, until the user closes the webview, messages.prolongWebView must be called every 60 seconds.