Webhook

Notifiche eventi in tempo reale

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

1

Create endpoint

Set up an HTTPS endpoint on your server to receive events

2

Configure in dashboard

Add your webhook URL in Settings → Integrations → Webhooks

3

Select events

Choose which events you want to receive

4

Save and test

Save the webhook and send a test event

Eventi Disponibili

message.received

Nuovo messaggio in una chat

message.edited

Messaggio modificato

member.joined

Utente entrato in un gruppo

member.left

Utente uscito da un gruppo

command.executed

Comando bot eseguito

module.triggered

Azione 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