Webhooks

रीयल-टाइम इवेंट नोटिफिकेशन

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.

विशेषताएं

Real-time

इवेंट होते ही तुरंत प्राप्त करें

Secure

प्रामाणिकता के लिए signature सत्यापन

Reliable

Exponential backoff के साथ स्वचालित retries

Flexible

अपनी आवश्यक विशिष्ट इवेंट सब्सक्राइब करें

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

उपलब्ध इवेंट

message.received

चैट में नया संदेश

message.edited

संदेश संपादित किया गया

member.joined

उपयोगकर्ता समूह में शामिल हुआ

member.left

उपयोगकर्ता ने समूह छोड़ा

command.executed

बॉट कमांड निष्पादित किया गया

module.triggered

मॉड्यूल एक्शन ट्रिगर हुआ

उदाहरण 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"
  }
}

अगला: OpenAI इंटीग्रेशन

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

अगला: OpenAI इंटीग्रेशन