Webhooks allow you to receive real-time notifications when events occur in your bots. Instead of polling our API, we'll send events directly to your server as they happen.
Características
Real-time
Recibe eventos instantáneamente a medida que ocurren
Secure
Verificación de firma para autenticidad
Reliable
Reintentos automáticos con retroceso exponencial
Flexible
Suscríbete a los eventos específicos que necesitas
Configuración de webhooks
Create endpoint
Set up an HTTPS endpoint on your server to receive events
Configure in dashboard
Add your webhook URL in Settings → Integrations → Webhooks
Select events
Choose which events you want to receive
Save and test
Save the webhook and send a test event
Eventos disponibles
message.receivedNuevo mensaje en un chat
message.editedSe editó un mensaje
member.joinedUn usuario se unió a un grupo
member.leftUn usuario abandonó un grupo
command.executedSe ejecutó un comando de bot
module.triggeredSe activó una acción de módulo
Payload de ejemplo
{
"event": "message.received",
"timestamp": "2024-01-15T10:30:00Z",
"signature": "sha256=...",
"data": {
"messageId": "msg_abc123",
"chatId": "-100123456789",
"from": {
"id": 123456789,
"username": "johndoe",
"firstName": "John"
},
"text": "Hello, bot!",
"date": "2024-01-15T10:30:00Z"
}
}Siguiente: Integración con OpenAI
Learn how to integrate OpenAI for AI-powered bot responses.
Siguiente: Integración con OpenAI