The Bots API allows you to create, manage, and monitor your Telegram bots. You can add new bots, update their settings, and remove them from your organization.
Endpoints
GET
/api/botsList all bots in your organization
pagelimitstatus
POST
/api/botsCreate a new bot with a Telegram token
tokennamedescription
GET
/api/bots/:idGet details of a specific bot
id
PATCH
/api/bots/:idUpdate bot settings
namedescriptionstatus
DELETE
/api/bots/:idRemove a bot from your organization
id
Example Request
# Create a new bot
curl -X POST https://api.botlaunch.io/api/bots \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"token": "123456:ABC-DEF", "name": "My Bot"}'
Example Response
{
"data": {
"id": "bot_abc123",
"name": "My Bot",
"username": "@MyAwesomeBot",
"status": "active",
"createdAt": "2024-01-15T10:30:00Z"
}
}