Pular para o conteúdo principal

Documentation Index

Fetch the complete documentation index at: https://whiskeysockets-docs-jids-socket-config-ptbr.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

O Baileys não atende chamadas, mas detecta e rejeita programaticamente.

Escutar chamadas

sock.ev.on('call', async (calls) => {
  for (const call of calls) {
    console.log(`Call ${call.status} from ${call.from}`)
  }
})

Rejeitar uma chamada

sock.ev.on('call', async (calls) => {
  for (const call of calls) {
    if (call.status === 'offer') {
      await sock.rejectCall(call.id, call.from)
    }
  }
})
O Baileys não aceita ou conduz chamadas de voz/vídeo. Rejeitar é a única ação suportada.