Sends a custom request; for bots only

dataJSON#7d748d04 data:string = DataJSON;
bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;


Name Type Description
custom_method string The method name
params DataJSON JSON-serialized method parameters



Possible errors

Code Type Description
400 DATA_JSON_INVALID The provided JSON data is invalid.
400 METHOD_INVALID The specified method is invalid.
403 USER_BOT_INVALID User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.

Bots can use this method