messages.sendWebViewResultMessage

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

 Method schema is available as of layer 140. Switch ยป

Parameters

Name Type Description
bot_query_id string Webview interaction ID obtained from messages.requestWebView
result InputBotInlineResult Message to send

Result

WebViewMessageSent

Possible errors

Code Type Description
400 QUERY_ID_INVALID The query ID is invalid.

Bots can use this method

Related pages

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.