Sending Messages
Text Messages
// Simple text message
await whatsapp.sendMessage('1234567890', 'Hello World!');
// With URL preview
await whatsapp.sendMessage('1234567890', 'Check this out: https://example.com', {
previewUrl: true
});
// Reply to a message
await whatsapp.sendMessage('1234567890', 'Thanks for your message!', {
replyTo: 'MESSAGE_ID'
});
// With priority (for queue)
await whatsapp.sendMessage('1234567890', 'Urgent message!', {
priority: 1,
queueIfBusy: true
});Voice Messages
// Using media ID
await whatsapp.sendVoice('1234567890', 'MEDIA_ID');
// Using URL
await whatsapp.sendVoice('1234567890', 'https://example.com/audio.mp3');
// With reply
await whatsapp.sendVoice('1234567890', 'MEDIA_ID', {
replyTo: 'MESSAGE_ID'
});Mark as Read
await whatsapp.markAsRead('MESSAGE_ID');Source captured: 2026-10-11