WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API

Home Page:https://baileys.whiskeysockets.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to decline a call

banndicoot-king opened this issue · comments

How to decline a wp call

commented

const rejectCall = async(callId: string, callFrom: string) => {

const rejectCall = async(callId: string, callFrom: string) => {

I try to call the rejectCall function but got error

Try something like this:

sock.ev.on("call", async (callsList: WACallEvent[]) => {
    for (const call of callsList) {
        await sock.rejectCall(call.id, call.from);
    }
});

any code to accept the call and take the call event

any code to accept the call and take the call event

I guess that this functionality doesn't exist up to now. There's a whole Text Channel destined to only calls on Baileys' Server on Discord.

Here is the invite: https://discord.gg/VNf5PCeq