Skip to content

SDKs

Descripción general

SDKs oficiales para Python y JavaScript/TypeScript. Sin dependencias, modelos tipados, verificación webhook integrada.

Ver también: Integraciones CI/CD · Verificación Webhook


Python SDK

Instalar

pip install botbell

Enviar una notificación

from botbell import BotBell

bot = BotBell("bt_your_token")
bot.send("Deploy succeeded ✅")

Esperar aprobación

from botbell import BotBell, Action

bot = BotBell("bt_your_token")
reply = bot.send_and_wait(
    "Deploy to production?",
    actions=[
        Action(key="approve", label="Approve"),
        Action(key="reject", label="Reject"),
    ],
)
if reply and reply.action == "approve":
    deploy()

JavaScript / TypeScript SDK

Instalar

npm install @botbell/sdk

Enviar una notificación

import { BotBell } from "@botbell/sdk";

const bot = new BotBell({ token: "bt_your_token" });
await bot.send("Deploy succeeded ✅");

Esperar aprobación

const reply = await bot.sendAndWait("Deploy to production?", {
  actions: [
    { key: "approve", label: "Approve" },
    { key: "reject", label: "Reject" },
  ],
});
if (reply?.action === "approve") {
  deploy();
}

Todos los repositorios

PackageInstallSource
botbellpip install botbellGitHub
@botbell/sdknpm install @botbell/sdkGitHub