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
| Name | Type | Required | Description |
|---|---|---|---|
BotQueryID | string | yes | Webview interaction ID obtained from messages.requestWebView |
Result | InputBotInlineResultClass | yes | Message to send |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | QUERY_ID_INVALID | The query ID is invalid. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.sendWebViewResultMessage#a4314f5