Layer 220
method Users

Parameters

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
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

Bool

Possible Errors

Code Type Description
400 BOT_INVALID This is not a valid bot.

Gogram Example

// MessagesProlongWebView - using Params struct
result, err := client.MessagesProlongWebView(&tg.MessagesProlongWebViewParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},
    Bot: &tg.InputUserSelf{},
    QueryId: int64(0),

    // Optional fields:
    // Silent: true,
    // ReplyTo: &tg.InputReplyToMessage{ReplyToMsgID: 123},
    // SendAs: &tg.InputPeerUser{UserID: int64(123456789)},
})
if err != nil {
    // handle error
}
// result is *tg.Bool