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.
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.prolongWebView#7ff34309 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to_msg_id:flags.0?int top_msg_id:flags.9?int send_as:flags.13?InputPeer = Bool;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
silent | flags.5?true | Whether 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). |
peer | InputPeer | Dialog where the web app was opened. |
bot | InputUser | Bot that owns the web app |
query_id | long | Web app interaction ID obtained from messages.requestWebView |
reply_to_msg_id | flags.0?int | Whether 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 this message ID. |
top_msg_id | flags.9?int | This field must contain the topic ID only when replying to messages in forum topics different from the "General" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1 ). If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic. |
send_as | flags.13?InputPeer | Open the web app as the specified peer |
Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.
Bots can offer users interactive HTML5 web apps to completely replace any website.
Open a bot web 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.
Telegram allows creating forums with multiple distinct topics.