Closed aserebryakov closed 2 years ago
@aserebryakov hello. Your changes look ok.
what do you think about passing a full client ? for example
pub fn new_with_client(api_client: Client, api_url: String) -> Self {
Self { api_url, client }
}
and reqwest
can be exported in the lib.rs
so its client can be instantiated
#[doc(hidden)]
#[cfg(any(feature = "async-http-client"))]
pub use reqwest;
I am quite new for Rust, but I can try to do that. Also I see that I need to fix failed checks.
I guess unwrap()
isn't a good idea to be used in new()
call.
@arkada38, Please review changes. I finally implemented it.
@aserebryakov @EdJoPaTo Thank you!
the changes were released in 0.15.1
If you use self-signed certificate, the following error appears when you use
AsyncTelegramApi
:So I added an option to use
REQWEST_USE_INSECURE_CERTS
environment variable to be set (value doesn't matter) to allow using such certificates.