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.
Fonctionnalités
Real-time
Recevez les événements instantanément au moment où ils se produisent
Secure
Vérification de signature pour l'authenticité
Reliable
Réessais automatiques avec backoff exponentiel
Flexible
Abonnez-vous aux événements spécifiques dont vous avez besoin
Configuration des 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
Événements disponibles
message.receivedNouveau message dans un chat
message.editedUn message a été modifié
member.joinedUn utilisateur a rejoint un groupe
member.leftUn utilisateur a quitté un groupe
command.executedUne commande de bot a été exécutée
module.triggeredUne action de module a été déclenchée
Exemple de payload
{
"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"
}
}Suivant : Intégration OpenAI
Learn how to integrate OpenAI for AI-powered bot responses.
Suivant : Intégration OpenAI