82 lines
2.1 KiB
JSON
82 lines
2.1 KiB
JSON
{
|
|
"server": {
|
|
"host": "localhost",
|
|
"port": 8080,
|
|
"default_country_code": "27",
|
|
"username": "",
|
|
"password": "",
|
|
"auth_key": ""
|
|
},
|
|
"whatsapp": [
|
|
{
|
|
"id": "acc1",
|
|
"phone_number": "+1234567890",
|
|
"session_path": "./sessions/account1",
|
|
"show_qr": true
|
|
}
|
|
],
|
|
"hooks": [
|
|
{
|
|
"id": "message_hook",
|
|
"name": "Message Handler",
|
|
"url": "https://6e808bc4802f4ae89db5c7eacba24083.api.mockbin.io/messages",
|
|
"method": "POST",
|
|
"headers": {
|
|
"Authorization": "Bearer your-token-here"
|
|
},
|
|
"active": true,
|
|
"events": [
|
|
"message.received",
|
|
"message.sent",
|
|
"message.delivered",
|
|
"message.read"
|
|
],
|
|
"description": "Receives message events (incoming, outgoing, delivery receipts, and read receipts)"
|
|
},
|
|
{
|
|
"id": "connection_hook",
|
|
"name": "Connection Monitor",
|
|
"url": "https://6e808bc4802f4ae89db5c7eacba24083.api.mockbin.io/status",
|
|
"method": "POST",
|
|
"headers": {
|
|
"Authorization": "Bearer your-token-here"
|
|
},
|
|
"active": true,
|
|
"events": [
|
|
"whatsapp.connected",
|
|
"whatsapp.disconnected"
|
|
],
|
|
"description": "Monitors WhatsApp connection status changes"
|
|
},
|
|
{
|
|
"id": "qr_hook",
|
|
"name": "QR Code Handler",
|
|
"url": "https://6e808bc4802f4ae89db5c7eacba24083.api.mockbin.io/qr",
|
|
"method": "POST",
|
|
"active": false,
|
|
"events": [
|
|
"whatsapp.qr.code",
|
|
"whatsapp.qr.timeout",
|
|
"whatsapp.qr.error"
|
|
],
|
|
"description": "Handles QR code events during pairing"
|
|
},
|
|
{
|
|
"id": "all_events_logger",
|
|
"name": "All Events Logger",
|
|
"url": "https://6e808bc4802f4ae89db5c7eacba24083.api.mockbin.io/all",
|
|
"method": "POST",
|
|
"headers": {
|
|
"Authorization": "Bearer your-token-here"
|
|
},
|
|
"active": false,
|
|
"description": "Receives ALL events (no events field means subscribe to everything)"
|
|
}
|
|
],
|
|
"media": {
|
|
"data_path": "./data/media",
|
|
"mode": "link",
|
|
"base_url": "http://localhost:8080"
|
|
},
|
|
"log_level": "info"
|
|
} |