Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

docs: update README and .env.example to include auto-reject incoming calls feature

Aldino Kemalb42727eafa93
diff --git a/readme.md b/readme.md
index 2378ef12..2c439e0c 100644
--- a/readme.md
+++ b/readme.md
@@ -99,6 +99,8 @@ Download:
- `--auto-mark-read=true` (automatically marks incoming messages as read)
- Auto download media from incoming messages
- `--auto-download-media=false` (disable automatic media downloads, default: `true`)
+- Auto reject incoming calls
+ - `--auto-reject-call=true` or `WHATSAPP_AUTO_REJECT_CALL=true` (see [Webhook Payload](./docs/webhook-payload.md#call-events) for call events)
- Webhook for received message
- `--webhook="http://yourwebhook.site/handler"`, or you can simplify
- `-w="http://yourwebhook.site/handler"`
diff --git a/src/.env.example b/src/.env.example
index e68ae5ac..3062da04 100644
--- a/src/.env.example
+++ b/src/.env.example
@@ -14,6 +14,7 @@ DB_KEYS_URI="file::memory:?cache=shared&_foreign_keys=on"
# WhatsApp Settings
WHATSAPP_AUTO_REPLY="Auto reply message"
WHATSAPP_AUTO_MARK_READ=false
+WHATSAPP_AUTO_REJECT_CALL=false
WHATSAPP_AUTO_DOWNLOAD_MEDIA=true
WHATSAPP_WEBHOOK=https://webhook.site/07b69616-5943-4c7f-a8be-db4819df699e,https://webhook.site/09a38aff-d11a-4a38-a176-3f3efa0b5e8b
WHATSAPP_WEBHOOK_SECRET=super-secret-key