Layer 227
MessagesProlongWebView
Indicate to the server (from the user side) that the user is still using a web app.
method
Users
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 |
|---|---|---|
| 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 |
| QueryId | long | Web app interaction ID obtained from messages. request Web View |
| ReplyTo | flags .0? 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. |
| SendAs | flags .13? InputPeer | Open the web app as the specified peer |
Returns
BoolGogram Example
// MessagesProlongWebView - using Params struct result, err := client.MessagesProlongWebView(&tg.MessagesProlongWebViewParams{ Silent: nil, Peer: &tg.InputPeerUser{UserID: int64(777000)}, Bot: &tg.InputUserSelf{}, QueryId: int64(1234567890), ReplyTo: nil, SendAs: nil, }) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |