Skip to main content

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​

NameTypeRequiredDescription
NoWebpagebool—Disable webpage preview
InvertMediabool—If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
IDInputBotInlineMessageIDClassyesSent inline message ID
Messagestring—Message
MediaInputMediaClass—Media
ReplyMarkupReplyMarkupClass—Reply markup for inline keyboards
Entities[]MessageEntityClass—Message entities for styled text
RichMessageInputRichMessageClass—RichMessage field of MessagesEditInlineBotMessageRequest.

Returns​

bool

Possible errors​

CodeTypeDescription
400BUTTON_DATA_INVALIDThe data of one or more of the buttons you provided is invalid.
400ENTITY_BOUNDS_INVALIDA specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400MESSAGE_NOT_MODIFIEDThe provided message data is identical to the previous message data, the message wasn't modified.

References​