🚀 V2 is here! Upgrade to our new API with queued requests for better reliability and performance. V1 will be deprecated on February 1, 2026. Learn about V2 →
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.
Send plain text messages with link preview (optional) (learn more)
We highly recommend using the send-text-safe endpoint for regular messaging operations to maintain a more natural communication pattern, and keep your whatsapp number safe from being blocked.
Basic usage
Parameters
Copy
use Hypersender\Hypersender;Hypersender::whatsapp() ->sendText( chat_id: '[email protected]', text: 'Hello from Laravel package!', );
Send videos to WhatsApp users via URL or file upload. (learn more)
Using URL
Parameters
Using File Upload
Parameters
Copy
use Hypersender\Hypersender;Hypersender::whatsapp() ->sendVideoUrl( chat_id: '[email protected]', url: 'https://example.com/video.mp4', asNote: false, caption: 'Check out this video!', reply_to: 'string', );
Parameter
Type
Required
Description
chat_id
string
yes
The WhatsApp number to send the message to
url
string
yes
The URL of the video to send
asNote
bool
yes
Whether to send the video as a note
caption
string
no
The caption for the video
reply_to
bool
no
Whether to reply to the message
Copy
use Hypersender\Hypersender;use Illuminate\Http\File;Hypersender::whatsapp() ->sendVideoFile( chat_id: '[email protected]', file: new File('/path/to/video.mp4'), asNote: false, caption: 'Check out this video!', reply_to: 'string', );
Parameter
Type
Required
Description
chat_id
string
yes
The WhatsApp number to send the message to
file
\Illuminate\Http\File
yes
The video file to send
asNote
bool
yes
Whether to send the video as a note
caption
string
no
The caption for the video
reply_to
bool
no
Whether to reply to the message
You can send videos only in mp4 formats - so make sure the url contains the correct extensionMax allowed file size is 20MB.
Send voice messages to WhatsApp users via URL or file upload. (learn more)
Using URL
Parameters
Using File Upload
Parameters
Copy
use Hypersender\Hypersender;Hypersender::whatsapp() ->sendVoiceUrl( chat_id: '[email protected]', url: 'https://example.com/audio.opus', caption: 'Check out this audio!', reply_to: 'string', );
Parameter
Type
Required
Description
chat_id
string
yes
The WhatsApp number to send the message to
url
string
yes
The URL of the audio to send
caption
string
no
The caption for the audio
reply_to
bool
no
Whether to reply to the message
Copy
use Hypersender\Hypersender;use Illuminate\Http\File;Hypersender::whatsapp() ->sendVoiceFile( chat_id: '[email protected]', file: new File('/path/to/audio.opus'), caption: 'Check out this audio!', reply_to: 'string', );
Send a text message with a custom link preview. (learn more)
Using URL
Parameters
Using File Upload
Parameters
Copy
use Hypersender\Hypersender;Hypersender::whatsapp() ->sendLinkCustomPreviewUrl( chatId: '[email protected]', text: 'Check this out: https://example.com', replyTo: null, highQuality: true, previewTitle: 'Example Title', previewDescription: 'A short description for the preview card', previewUrl: 'https://example.com', previewImageUrl: 'https://example.com/image.jpg', );
Parameter
Type
Required
Description
chatId
string
yes
The WhatsApp chat ID to send the message to
text
string
yes
The message text (can include a link)
replyTo
string
no
Message ID to reply to
highQuality
bool
no
Whether to use high-quality preview images
previewTitle
string
yes
Title to display in the link preview
previewDescription
string
yes
Description to display in the link preview
previewUrl
string
yes
Link URL for the preview card
previewImageUrl
string
yes
Direct URL to the preview image
Copy
use Hypersender\Hypersender;use Illuminate\Http\UploadedFile;Hypersender::whatsapp() ->sendLinkCustomPreviewFile( chatId: '[email protected]', text: 'Check this out: https://example.com', replyTo: null, highQuality: true, previewTitle: 'Example Title', previewDescription: 'A short description for the preview card', previewUrl: 'https://example.com', previewImageFile: new UploadedFile('/path/to/image.jpg', 'image.jpg', 'image/jpeg'), );
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.