telegram api method · layer 229 · #a423bb51

messages.editInlineBotMessage

usable by users and bots

Edit an inline bot message

definition

messages.editInlineBotMessage#a423bb51 flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> rich_message:flags.23?InputRichMessage = Bool;

parameters

nametypedescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueDisable webpage preview
invert_mediaflags.16?trueIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
idInputBotInlineMessageIDSent inline message ID
messageflags.11?stringMessage
mediaflags.14?InputMediaMedia
reply_markupflags.2?ReplyMarkupReply markup for inline keyboards
entitiesflags.3?Vector<MessageEntity>Message entities for styled text
rich_messageflags.23?InputRichMessage

returns

Bool

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 62–229 · constructor id changed 4×

idlayers
#130c2c8562–71
#b0e0824372–78
#adc3e82879–90
#83557dba91–226
#a423bb51227–229