waha
waha copied to clipboard
[WEBJS] Reject the call
â Ready and available in dev images:
devlikeapro/waha-plus:devâ make sure to select the engine via the environment variabledevlikeapro/waha-plus:dev-arm
đ Will be included in the next release!
API
Reject Call
Decline an incoming call using its call id and chat id from the call.received event.
POST /api/{session}/calls/reject
{
"from": "[email protected]",
"id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
đ Available on WEBJS, GOWS, NOWEB
WAHA emits call.rejected event after the call is declined.
To reject any calls
- Listen
call.received- getfromandidfield - Call
POST /api/{session}/calls/reject - Send a message or ban the contact, idk.
âšī¸ If anyone needs to "automatically reject calls" with "auto-reply messages" - we'll add it as a calls app, comment +1 the issue https://github.com/devlikeapro/waha/issues/1694