telegram api method · layer 229 · #857ebdb8

messages.getPreparedInlineMessage

usable by users

Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events

definition

messages.getPreparedInlineMessage#857ebdb8 bot:InputUser id:string = messages.PreparedInlineMessage;

parameters

nametypedescription
botInputUserThe bot that owns the mini app that emitted the web_app_send_prepared_message event
idstringThe id from the web_app_send_prepared_message event

returns

messages.PreparedInlineMessage

errors (4)

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.
400ID_EXPIREDThe passed prepared inline message ID has expired.
400ID_INVALIDThe passed ID is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 193–229

idlayers
#857ebdb8193–229