API Overview
Message Callbacks
Status Codes
Overview
Adds a Telegram bot.
Request
Authentication: Add authentication headers to the request. See Authentication
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/jim/telegrambots/add
Content-Type:
application/json
Request parameters
| Parameter | Data type | Required | Description | |
|---|---|---|---|---|
| bot_name | string | Yes | Bot name. | |
| bot_token | string | Yes | Telegram Bot Token. |
Request example
POST /jim/telegrambots/add HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"bot_name":"xxxxxxxxxxxx",
"bot_token":"xxxx"
}
Response example
{
"code":0,
"msg":"sucess"
}
Response codes
| Response codes | Description | |
|---|---|---|
| 17300 | Failed to add the bot. |