bots.sendCustomRequest #

Sends a custom request; for bots only

Layer 223

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

Parameters #

NameTypeDescription
custom_methodstringThe method name
paramsDataJSONJSON-serialized method parameters

Result #

DataJSON

Only bots can use this method #

Possible errors #

CodeTypeDescription
400DATA_JSON_INVALIDThe provided JSON data is invalid.
400METHOD_INVALIDThe specified method is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.