Skip to content

Commit

Permalink
Update src/client_reqwest.rs
Browse files Browse the repository at this point in the history
accept suggestion

Co-authored-by: EdJoPaTo <[email protected]>
  • Loading branch information
xlfish233 and EdJoPaTo authored Nov 14, 2024
1 parent ad25193 commit a39c39c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client_reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ impl AsyncTelegramApi for AsyncApi {

#[cfg(target_arch = "wasm32")]
{
// for this function need api about fs, so we this function need find replacement,maybe another function input encoded file? welcome to PR.
Err(Error::Encode(format!(
"calling {method:?} with files is unsupported in WASM due to missing form_data / attachment support. Was called with params {params:?} and files {files:?}",
"calling {method:?} with files is currently unsupported in WASM due to missing form_data / attachment support. Was called with params {params:?} and files {files:?}",
)))
}
}
Expand Down

0 comments on commit a39c39c

Please sign in to comment.