messages.editInlineBotMessage
Edit an inline bot message
func (c *Client) MessagesEditInlineBotMessage(ctx context.Context, request *MessagesEditInlineBotMessageRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesEditInlineBotMessage(ctx, &tg.MessagesEditInlineBotMessageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
NoWebpage | bool | — | Disable webpage preview |
InvertMedia | bool | — | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
ID | InputBotInlineMessageIDClass | yes | Sent inline message ID |
Message | string | — | Message |
Media | InputMediaClass | — | Media |
ReplyMarkup | ReplyMarkupClass | — | Reply markup for inline keyboards |
Entities | []MessageEntityClass | — | Message entities for styled text |
RichMessage | InputRichMessageClass | — | RichMessage field of MessagesEditInlineBotMessageRequest. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BUTTON_DATA_INVALID | The data of one or more of the buttons you provided is invalid. |
| 400 | ENTITY_BOUNDS_INVALID | A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. |
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | MESSAGE_NOT_MODIFIED | The provided message data is identical to the previous message data, the message wasn't modified. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.editInlineBotMessage#a423bb51