Skip to main content

messages.sendWebViewResultMessage

Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.

func (c *Client) MessagesSendWebViewResultMessage(ctx context.Context, request *MessagesSendWebViewResultMessageRequest) (*WebViewMessageSent, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesSendWebViewResultMessage(ctx, &tg.MessagesSendWebViewResultMessageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *WebViewMessageSent
return nil
})

Parameters

NameTypeRequiredDescription
BotQueryIDstringyesWebview interaction ID obtained from messages.requestWebView
ResultInputBotInlineResultClassyesMessage to send

Returns

*WebViewMessageSent

Possible errors

CodeTypeDescription
400QUERY_ID_INVALIDThe query ID is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.

References