telegram api method · layer 229 · #087fc5e7

bots.invokeWebViewCustomMethod

usable by users

Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ».

definition

bots.invokeWebViewCustomMethod#87fc5e7 bot:InputUser custom_method:string params:DataJSON = DataJSON;

parameters

nametypedescription
botInputUserIdentifier of the bot associated to the mini bot app
custom_methodstringIdentifier of the custom method to invoke
paramsDataJSONMethod parameters

returns

DataJSON

errors (5)

codeerrordescription
400BOT_INVALIDThis is not a valid bot.
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.
400DATA_JSON_INVALIDThe provided JSON data is invalid.
400METHOD_INVALIDThe specified method 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 162–229

idlayers
#087fc5e7162–229