Send a native booking confirmation message.
At least one of location, bookingUrl, or phoneNumber is required by WhatsApp. Dates can be supplied as ISO strings or JavaScript Date values.
location
bookingUrl
phoneNumber
Date
await WPP.chat.sendBookingMessage('[number]@c.us', { body: 'Your appointment is confirmed.', title: 'Appointment', startTime: new Date('2026-10-11T15:00:00.000Z'), endTime: new Date('2026-10-11T16:00:00.000Z'), location: '10 Main Street', managementUrl: 'https://example.com/bookings/123'}); Copy
await WPP.chat.sendBookingMessage('[number]@c.us', { body: 'Your appointment is confirmed.', title: 'Appointment', startTime: new Date('2026-10-11T15:00:00.000Z'), endTime: new Date('2026-10-11T16:00:00.000Z'), location: '10 Main Street', managementUrl: 'https://example.com/bookings/123'});
Send a native booking confirmation message.
At least one of
location,bookingUrl, orphoneNumberis required by WhatsApp. Dates can be supplied as ISO strings or JavaScriptDatevalues.