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.
Funzionalità
Real-time
Ricevi eventi istantaneamente nel momento in cui accadono
Secure
Verifica della firma per l'autenticità
Reliable
Retry automatici con backoff esponenziale
Flexible
Sottoscrivi eventi specifici di cui hai bisogno
Configurazione dei Webhook
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
Eventi Disponibili
message.receivedNuovo messaggio in una chat
message.editedMessaggio modificato
member.joinedUtente entrato in un gruppo
member.leftUtente uscito da un gruppo
command.executedComando bot eseguito
module.triggeredAzione modulo attivata
Esempio di 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"
}
}Prossimo: Integrazione OpenAI
Learn how to integrate OpenAI for AI-powered bot responses.
Prossimo: Integrazione OpenAI