Docs/Integrasi/Webhooks

Webhooks

Notifikasi event real-time

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.

Fitur

Real-time

Terima event secara instan saat terjadi

Secure

Verifikasi tanda tangan untuk keaslian

Reliable

Percobaan ulang otomatis dengan exponential backoff

Flexible

Berlangganan event spesifik yang Anda butuhkan

Menyiapkan 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

Event yang Tersedia

message.received

Pesan baru di chat

message.edited

Pesan telah diedit

member.joined

Pengguna bergabung ke grup

member.left

Pengguna keluar dari grup

command.executed

Perintah bot dijalankan

module.triggered

Aksi modul dipicu

Contoh 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"
  }
}

Selanjutnya: Integrasi OpenAI

Learn how to integrate OpenAI for AI-powered bot responses.

Selanjutnya: Integrasi OpenAI