أرسل رسالة واتساب بسهولة باستخدام ال api إبدأ خلال دقائق
use reqwest::Client;
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new();
let response = client
.post("https://api.sendmsg.dev/message/batch")
.json(&json!({
"to": ["+1234567890", "+0987654321"],
"message": "Hello from MSG!",
// "token": "YOUR_API_TOKEN" // Optional, gives full access
}))
.send()
.await?;
let result = response.json().await?;
Ok(())
}