telegram api method · layer 229 · #b0d81a83
messages.prolongWebView
Indicate to the server (from the user side) that the user is still using a web app.
definition
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
silent | 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 | InputReplyTo | If 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_as | InputPeer | Open the web app as the specified peer |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 140–229 · constructor id changed 3×
| id | layers |
|---|---|
| #d22ad148 | 140–142 |
| #ea5fbcce | 143–147 |
| #7ff34309 | 148–159 |
| #b0d81a83 | 160–229 |