Send message #4

Merged
phoenix merged 26 commits from send_message into v0.3.x 2026-06-04 20:37:40 -04:00
Showing only changes of commit b5fd3dbfff - Show all commits
+6 -10
View File
@@ -61,16 +61,12 @@ pub async fn send_mssage(
let request = client.post(url).headers(headers).form(&params); let request = client.post(url).headers(headers).form(&params);
match request.send().await { match request.send().await {
Ok(response) => { Ok(response) => match response.status() {
match response.status() { reqwest::StatusCode::OK => Ok(response),
reqwest::StatusCode::OK => { status => Err(std::io::Error::other(format!(
Ok(response) "Unaccounted status: {status:?}"
} ))),
status => { },
Err(std::io::Error::other(format!("Unaccounted status: {status:?}")))
}
}
}
Err(err) => Err(std::io::Error::other(err.to_string())), Err(err) => Err(std::io::Error::other(err.to_string())),
} }
} }