API de Bots

Gestiona tus bots de Telegram de forma program谩tica

La API de Bots te permite crear, gestionar y monitorear tus bots de Telegram. Puedes agregar nuevos bots, actualizar su configuraci贸n y eliminarlos de tu organizaci贸n.

Endpoints

GET
/api/bots

Listar todos los bots de tu organizaci贸n

pagelimitstatus
POST
/api/bots

Crear un nuevo bot con un token de Telegram

tokennamedescription
GET
/api/bots/:id

Obtener detalles de un bot espec铆fico

id
PATCH
/api/bots/:id

Actualizar configuraci贸n del bot

namedescriptionstatus
DELETE
/api/bots/:id

Eliminar un bot de tu organizaci贸n

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

Siguiente: API de Mensajes

Aprende a enviar y gestionar mensajes a trav茅s de tus bots.

Messages API