Layer 224
MessagesProlongWebView
Indicate to the server (from the user side) that the user is still using a web app.
method
Users
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{ Peer: &tg.InputPeerUser{UserID: int64(777000)}, Bot: &tg.InputUserSelf{}, QueryId: int64(1234567890), // Optional fields: // Silent: true, // ReplyTo: &tg.InputReplyToMessage{ReplyToMsgID: 42}, // SendAs: &tg.InputPeerUser{UserID: int64(777000)}, }) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |