Escutar chamadas
Rejeitar uma chamada
O Baileys não aceita ou conduz chamadas de voz/vídeo. Rejeitar é a única ação suportada.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Escute chamadas recebidas e rejeite-as.
sock.ev.on('call', async (calls) => {
for (const call of calls) {
console.log(`Call ${call.status} from ${call.from}`)
}
})
sock.ev.on('call', async (calls) => {
for (const call of calls) {
if (call.status === 'offer') {
await sock.rejectCall(call.id, call.from)
}
}
})