messages.prolongWebView #

Indicate to the server (from the user side) that the user is still using a web app.

If the method returns a QUERY_ID_INVALID error, the webview must be closed.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.5?trueWhether 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).
peerInputPeerDialog where the web app was opened.
botInputUserBot that owns the web app
query_idlongWeb app interaction ID obtained from messages.requestWebView
reply_toflags.0?InputReplyToIf 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.
send_asflags.13?InputPeerOpen the web app as the specified peer

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.

messages.sendWebViewResultMessage #

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

Mini Apps on Telegram #

Bots can offer users interactive HTML5 web apps to completely replace any website.

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.