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);
match request.send().await {
Ok(response) => {
match response.status() {
reqwest::StatusCode::OK => {
Ok(response)
}
status => {
Err(std::io::Error::other(format!("Unaccounted status: {status:?}")))
}
}
}
Ok(response) => match response.status() {
reqwest::StatusCode::OK => Ok(response),
status => Err(std::io::Error::other(format!(
"Unaccounted status: {status:?}"
))),
},
Err(err) => Err(std::io::Error::other(err.to_string())),
}
}