Feature summary
Problem:
whatsapp-web.js currently supports detecting and rejecting calls through the Call class, but it does not allow developers to initiate outgoing voice or video calls programmatically.
This limits automation use cases such as:
customer support systems
CRM integrations
business communication tools
Benefit:
Adding support for outgoing calls would greatly expand the capabilities of the library and allow developers to build richer communication workflows directly from WhatsApp Web.
Ideal solution or implementation
// Voice call
await client.call(chatId);
// Video call
await client.call(chatId, {
video: true
});
Events -
client.on('call_started', call => {});
client.on('call_ended', call => {});
client.on('call_failed', error => {});
Alternatives / Additional context
Currently developers can only:
detect incoming calls
reject calls
There is no official way to:
initiate calls
answer calls
control active calls
Even experimental/internal support would be very valuable for the community.
Checklist
Feature summary
Problem:
whatsapp-web.js currently supports detecting and rejecting calls through the Call class, but it does not allow developers to initiate outgoing voice or video calls programmatically.
This limits automation use cases such as:
customer support systems
CRM integrations
business communication tools
Benefit:
Adding support for outgoing calls would greatly expand the capabilities of the library and allow developers to build richer communication workflows directly from WhatsApp Web.
Ideal solution or implementation
// Voice call await client.call(chatId); // Video call await client.call(chatId, { video: true }); Events - client.on('call_started', call => {}); client.on('call_ended', call => {}); client.on('call_failed', error => {});Alternatives / Additional context
Currently developers can only:
detect incoming calls
reject calls
There is no official way to:
initiate calls
answer calls
control active calls
Even experimental/internal support would be very valuable for the community.
Checklist