ferro-whatsapp
WhatsApp Business Cloud API integration for the Ferro web framework.
Send text and template messages via the Meta Cloud API v23.0, process inbound webhooks with HMAC-SHA256 signature verification, and deduplicate messages using a pluggable store trait.
Features
- Outbound messaging — send text messages and pre-approved template messages
- Inbound webhook processing — parse and validate incoming WhatsApp events
- HMAC-SHA256 verification — reject requests with invalid signatures automatically
- Message deduplication — pluggable
DeduplicationStoretrait to prevent duplicate processing - Event-driven — emits
WhatsAppTextReceivedandWhatsAppStatusUpdatevia ferro-events - Queue integration — send messages asynchronously via ferro-queue workers
Usage
use ;
// Configure at startup
let whatsapp = new;
// Send a text message
whatsapp
.send_text
.await?;
Documentation
Full documentation at docs.ferro-rs.dev.
License
MIT