1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! # ferro-whatsapp
//!
//! WhatsApp Business Cloud API integration for the Ferro framework.
//!
//! Provides outbound message sending (text and template messages) via the Meta
//! Cloud API v23.0, with a static OnceLock facade matching the ferro-stripe pattern.
//! Inbound webhook verification, message deduplication, and typed event dispatch
//! are provided by the `webhook` and `dedup` modules.
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use ferro_whatsapp::{WhatsApp, WhatsAppConfig, Message};
//!
//! // Initialize once at app startup
//! let config = WhatsAppConfig::from_env(Box::new(|phone| phone == "393401234567"))
//! .expect("WhatsApp config not set");
//! WhatsApp::init(config);
//!
//! // Send a text message from any handler
//! let result = WhatsApp::send("393409999999", Message::Text {
//! body: "Your order is ready!".into(),
//! }).await?;
//! println!("Sent wamid: {}", result.wamid);
//! ```
pub use WhatsApp;
pub use WhatsAppConfig;
pub use ;
pub use Error;
pub use ;
pub use ;
pub use signed_whatsapp_payload;
pub use verify_whatsapp_webhook;