diff --git a/src/api/async_telegram_api_impl.rs b/src/api/async_telegram_api_impl.rs index 646b128..f12d4c6 100644 --- a/src/api/async_telegram_api_impl.rs +++ b/src/api/async_telegram_api_impl.rs @@ -15,7 +15,7 @@ pub struct AsyncApi { #[builder(setter(into))] pub api_url: String, #[builder( - default_code = "reqwest::ClientBuilder::new().connect_timeout(Duration::from_secs(10)).timeout(Duration::from_secs(10)).build().unwrap()" + default_code = "reqwest::ClientBuilder::new().connect_timeout(Duration::from_secs(500)).timeout(Duration::from_secs(500)).build().unwrap()" )] pub client: reqwest::Client, } diff --git a/src/api/telegram_api_impl.rs b/src/api/telegram_api_impl.rs index 6f624e3..4f9473e 100644 --- a/src/api/telegram_api_impl.rs +++ b/src/api/telegram_api_impl.rs @@ -13,7 +13,7 @@ use ureq::Response; pub struct Api { #[builder(setter(into))] pub api_url: String, - #[builder(default_code = "ureq::builder().timeout(Duration::from_secs(10)).build()")] + #[builder(default_code = "ureq::builder().timeout(Duration::from_secs(500)).build()")] pub request_agent: ureq::Agent, }