Sends a custom request; for bots only
Method schema is available as of layer 62. Switch ยป
Name | Type | Description |
---|---|---|
custom_method | string | The method name |
params | DataJSON | JSON-serialized method parameters |
Code | Type | Description |
---|---|---|
400 | DATA_JSON_INVALID | The provided JSON data is invalid. |
400 | METHOD_INVALID | The specified method is invalid. |
400 | USER_BOT_REQUIRED | This method can only be called by a bot. |