Hypersender

Messaging APIs

WhatsApp APISend and receive from your own numberSMS gateway appApproved on Google Play, Android 9 to 16OTP APICodes and WhatsApp sign-in links

Build with it

SDKsLaravel, Node.js, Python, Go and RustMCP serverWhatsApp and SMS from your AI assistantIntegrationsn8n, AI assistants and SDKsWhatsApp API pricingPlans, and per-message costs comparedDocsAPI reference and setup guides
SDKsLaravelNode.jsPythonGoRustn8n

WhatsApp

CRM integrationPayment remindersOrder updatesWhatsApp OTPLaravel Rust OTPOTP linkWhatsApp alertsIncoming message webhooksWhatsApp AI chatbotCustomer serviceWhatsApp automationMessaging from LaravelClaude to WhatsAppChatGPT integrationZapier and MakeWhatsApp surveys

SMS

Appointment remindersSMS OTPFilter and tag SMSSMS forwardingSMS gateway appAndroid SMS gateway
All use cases
WhatsApp link generatorA short chat link with a ready message, a QR code with your logo and a button for your website.WhatsApp message templatesReady messages for orders, appointments and payments, with a builder that checks them against Meta's rules.WhatsApp text formatterBold, italic, strikethrough, lists and quotes, with keyboard shortcuts and a live iPhone preview.SMS character counterCharacters, SMS parts and GSM-7 or Unicode, plus the characters that make a message longer.Phone validatorCheck if a number is valid, see its country and line type, and copy it in E.164 or WhatsApp format. Works on lists too.Phone number formatterTurn a messy list into one format: E.164, international, national or WhatsApp chat IDs, ready to copy or download.Phone number extractorPaste any text, an email or a spreadsheet and get every phone number in it, cleaned up and without repeats.CSV to VCF converterTurn a CSV file or cells copied from Excel into a VCF file you can import to your phone's contacts.vCard QR code generatorA QR code that saves your name, number, email and website to the phone that scans it.Name decorationStylish versions of a name in English or Arabic for PUBG, Free Fire, Instagram and TikTok.
All free tools

Company

BlogGuides, tutorials and comparisonsAlternativesHypersender vs WATI, Twilio and moreAbout HypersenderWho we are and how we workFAQsShort answers to common questions

Community

Latest postDecember 2, 2026Laravel Rust WhatsApp: Send and Receive MessagesLaravel Rust WhatsApp guide: send messages from your own number with the hypersender-laravel-rust crate and reply to incoming ones from a listener.Read the post
PricingDocs
Sign InGet Started
Hypersender
Add to Google favorites

Product

  • Features
  • Use cases
  • MCP server
  • Pricing
  • WhatsApp API pricing
  • SDKs
  • Integrations
  • Docs

Free tools

  • WhatsApp link generator
  • WhatsApp message templates
  • WhatsApp text formatter
  • SMS character counter
  • Phone validator
  • Name decoration
  • All tools

Resources

  • About Hypersender
  • FAQ
  • Blog
  • Alternatives
  • Status
  • Discord
  • WhatsApp

Legal

  • Terms and Conditions
  • Privacy Policy
Featured onFeatured on LaunchAFFeatured on LaunchAFFeatured on Twelve ToolsFeatured on Twelve ToolsLaunched on FazierLaunched on FazierLaunched on StartupBaseLaunched on StartupBaseHypersender on Nick LaunchesHypersender on Nick LaunchesLaunch Llama ToolsLaunch Llama ToolsFeatured on FoundrListFeatured on FoundrList

© 2026 Hypersender. All rights reserved.

GET IT ONGoogle Play
HypersenderHypersenderHypersenderHypersenderHypersender
All articles

Developer guides

Laravel Rust WhatsApp: Send and Receive Messages

Laravel Rust WhatsApp guide: send messages from your own number with the hypersender-laravel-rust crate and reply to incoming ones from a listener.

Hypersender·December 2, 2026·2 min read
Laravel Rust WhatsApp: Send and Receive MessagesLaravel Rust WhatsApp: Send and Receive Messages
On this page
  1. What you need
  2. Install the package
  3. Send a WhatsApp message from Laravel Rust
  4. Send an image or a file
  5. Receive messages and reply
  6. Test it without sending real messages
  7. SMS and OTP from the same package
  8. Price

On this page

  1. What you need
  2. Install the package
  3. Send a WhatsApp message from Laravel Rust
  4. Send an image or a file
  5. Receive messages and reply
  6. Test it without sending real messages
  7. SMS and OTP from the same package
  8. Price

Laravel Rust WhatsApp messaging takes one crate: hypersender-laravel-rust, the Hypersender package for Laravel Rust. Laravel Rust came out in beta on December 1, 2026, and this guide uses it to send a WhatsApp message from your own number, reply to incoming messages with an event listener, and test both without touching the network.

What you need

  • Rust 1.99 or newer and the Laravel CLI, as the Laravel Rust installation guide describes.
  • A Hypersender account with a WhatsApp instance. You link your number by scanning a QR code, the same way you'd link WhatsApp Web, so there's no Meta business verification and no message templates.

Create an app if you don't have one:

bash
laravel new whatsapp-demo --rust
cd whatsapp-demo

Install the package

bash
cargo add hypersender-laravel-rust

Laravel Rust packages ship a service provider. Register it in src/app.rs:

rust
use laravel::Application;
 
Application::configure()
    .with_providers(|providers| {
        providers.add(hypersender_laravel_rust::HypersenderServiceProvider);
    })

Then copy the instance ID and API token from your instance page in the dashboard into .env:

bash
HYPERSENDER_WHATSAPP_API_KEY=your_api_token
HYPERSENDER_WHATSAPP_INSTANCE_ID=your_instance_id

The provider registers a Whatsapp service, an Sms service, an Otp service and two webhook routes. The package keeps laravel-rust default features off, as the Laravel Rust package guide asks, so it doesn't add Inertia or MiniJinja to your build.

Send a WhatsApp message from Laravel Rust

Inject Whatsapp into any handler, listener, job or command:

rust
use hypersender_laravel_rust::Whatsapp;
use laravel::container::Inject;
 
pub async fn send(whatsapp: Inject<Whatsapp>) -> laravel::Result<String> {
    whatsapp
        .send_text("201001234567@c.us", "Hi Omar, your order #1042 has shipped.")
        .await?;
 
    Ok("Sent".into())
}

Add route.get("/send", send); to src/routes/web.rs, run laravel dev, open http://127.0.0.1:8000/send, and the message reaches the phone a moment later.

  • The chat ID is the number with its country code and no +, followed by @c.us. Groups end in @g.us.
  • send_text sends right away. safe_send_text shows "typing…" and pauses first, which suits many messages in a row.
  • A non-2xx answer from Hypersender comes back as an error, so ? stops the handler instead of carrying on silently.

Send an image or a file

URL methods take a link, and upload methods take a Laravel Attachment:

rust
use laravel::http::client::Attachment;
 
whatsapp
    .send_image_url("201001234567@c.us", "https://example.com/receipts/1042.png", Some("Your receipt"))
    .await?;
 
whatsapp
    .send_file("201001234567@c.us", Attachment::from_path("storage/app/invoice-1042.pdf"), Some("Invoice #1042"))
    .await?;

Video, voice notes, locations and polls have their own methods. For any endpoint without one, whatsapp.post("/endpoint", json!({ .. })) calls it directly.

Receive messages and reply

The package adds POST /api/whatsapp/webhook in the api route group, so CSRF protection doesn't block it. Each webhook becomes a Laravel event: MessageAny, MessageAck, MessageRevoked, MessageWaiting and the rest. This listener answers every new message:

rust
use hypersender_laravel_rust::Whatsapp;
use hypersender_laravel_rust::events::MessageAny;
use laravel::container::Inject;
use laravel::event::{Event, listener};
 
#[listener]
pub async fn auto_reply(event: Event<MessageAny>, whatsapp: Inject<Whatsapp>) -> laravel::Result<()> {
    let message = &event.payload["data"]["payload"];
 
    // message.any also fires for messages you send, so skip those.
    if message["fromMe"] == true {
        return Ok(());
    }
 
    whatsapp
        .send_text(message["from"].as_str().unwrap_or_default(), "Thanks, we got your message")
        .await?;
 
    Ok(())
}

Put it in src/listeners/ and Laravel Rust discovers it. While you build, expose the app with a tunnel such as ngrok, then add https://<your-tunnel>/api/whatsapp/webhook to your instance's webhooks in the dashboard. Message your number from another phone and the reply comes back.

  • If you set an authorization secret in the dashboard, put the same value in HYPERSENDER_WHATSAPP_WEBHOOK_AUTHORIZATION_SECRET. Requests without it get a 401.
  • The route answers Hypersender straight away and runs listeners in the background. For work that must finish, use #[listener(queued)]; every event derives Queueable.
  • The Laravel Rust WhatsApp webhooks docs list every event and its payload.

Test it without sending real messages

The package makes its calls through Laravel's HTTP client, so client::fake() catches them in your tests:

rust
use laravel::http::client;
use laravel::testing::prelude::*;
 
#[laravel::test]
async fn shipping_sends_a_whatsapp_message(app: Application) {
    let http = client::fake();
 
    app.get("/send").await.assert_ok();
 
    http.assert_sent(|request| request.url().ends_with("/send-text"));
}

SMS and OTP from the same package

Sms sends from the SIM in an Android phone running the Hypersender SMS app, and Otp sends login codes and one-tap WhatsApp login links. The Laravel Rust OTP use case walks through a sign-in flow. The PHP version of this package is covered in Laravel WhatsApp package.

Price

WhatsApp plans start at $9.99 per number a month with unlimited messages, and the first 5 days are free. The package is MIT licensed, and the source is on GitHub.

Create a Hypersender account, link your number with a QR code and send your first WhatsApp message from Laravel Rust.

Add Hypersender to your Google favorites

Keep reading

Laravel OTP Verification over WhatsApp and SMSLaravel OTP Verification over WhatsApp and SMS

Developer guides

Laravel OTP Verification over WhatsApp and SMS

Laravel OTP verification with the Hypersender SDK: send a code over WhatsApp or SMS, check what the user types, and rate-limit both routes.

November 30, 2026·3 min read

By Hypersender

What Is a Webhook? How Webhooks Work, With ExamplesWhat Is a Webhook? How Webhooks Work, With Examples

Developer guides

What Is a Webhook? How Webhooks Work, With Examples

What is a webhook: an HTTP request an app sends to your URL when an event happens. How webhooks work, with a real payload to test for free.

November 29, 2026·3 min read

By Hypersender

Webhook vs API: The Difference, With ExamplesWebhook vs API: The Difference, With Examples

Developer guides

Webhook vs API: The Difference, With Examples

Webhook vs API: an API answers when you ask, a webhook calls you when something happens. When to use each, with WhatsApp and SMS examples.

November 29, 2026·2 min read

By Hypersender

Start Sending WhatsApp and SMS Messages Today

Start a free trial: 5 days for WhatsApp and SMS, with up to 100 messages a day.

Contact SalesGet Started