Overview
The Send Message module provides comprehensive methods for sending various message types, managing interactions, and controlling chat on WhatsApp. Build engaging, feature-rich messaging experiences with safe sending options, link previews, and more.Every method returns a
Promise that resolves to the parsed, typed response and rejects with an error (a subclass of HypersenderError) when the request fails.Text Methods
Send various types of content to engage your audience with multimedia and interactive elements.Safe Send Text Message
Send text with the Node SDK’ssendTextSafe method. See the endpoint reference for its request fields and response flow.
- Basic usage
- Parameters
Send Text Message
Send plain text messages with link preview (optional) (learn more)- Basic usage
- Parameters
The Node SDK sends requests as JSON, so media is sent by passing a publicly reachable
url. Multipart file uploads are not supported by the Node SDK; host the file and pass its URL instead.Send Image Message
Send images to WhatsApp users via URL. (learn more)- Basic Usage
- Parameters
Send Video Message
Send videos to WhatsApp users via URL. (learn more)- Basic Usage
- Parameters
Send Voice Message
Send voice messages to WhatsApp users via URL. (learn more)- Basic Usage
- Parameters
Send Location Message
Send location messages to WhatsApp users. (learn more)- Basic Usage
- Parameters
Send Poll Message
Send poll messages to WhatsApp users. (learn more)- Basic Usage
- Parameters
Send Link Custom Preview
Send a text message with a custom link preview. (learn more)- Basic Usage
- Parameters
Send File Message
Send any file type via URL. (learn more)- Basic Usage
- Parameters
Send Contact Card
Send contact cards (vCard) to WhatsApp users. (learn more)- Basic Usage
- Parameters
Each contact supports:
vcard, fullName, organization, phoneNumber, whatsappId.You can send one or multiple contacts in a single message by including multiple items in the contacts array.