Webhooks

Notifications d'événements en temps réel

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

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

Événements disponibles

message.received

Nouveau message dans un chat

message.edited

Un message a été modifié

member.joined

Un utilisateur a rejoint un groupe

member.left

Un utilisateur a quitté un groupe

command.executed

Une commande de bot a été exécutée

module.triggered

Une 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