Bots API

Manage your Telegram bots programmatically

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/bots

List all bots in your organization

pagelimitstatus
POST
/api/bots

Create a new bot with a Telegram token

tokennamedescription
GET
/api/bots/:id

Get details of a specific bot

id
PATCH
/api/bots/:id

Update bot settings

namedescriptionstatus
DELETE
/api/bots/:id

Remove 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"
  }
}

Next: Messages API

Learn how to send and manage messages through your bots.

Messages API