Spaces:
Running
Running
Upload main.rs
Browse files- src/main.rs +1 -1
src/main.rs
CHANGED
|
@@ -949,7 +949,7 @@ async fn send_audio(
|
|
| 949 |
// и принудительно уходим на HTTP/1.1 с короткими ретраями.
|
| 950 |
let tg_url = format!("https://api.telegram.org/bot{}/sendAudio", bot_token);
|
| 951 |
let tg_http = reqwest::Client::builder()
|
| 952 |
-
.
|
| 953 |
.connect_timeout(Duration::from_secs(20))
|
| 954 |
.timeout(Duration::from_secs(180))
|
| 955 |
.tcp_keepalive(Duration::from_secs(30))
|
|
|
|
| 949 |
// и принудительно уходим на HTTP/1.1 с короткими ретраями.
|
| 950 |
let tg_url = format!("https://api.telegram.org/bot{}/sendAudio", bot_token);
|
| 951 |
let tg_http = reqwest::Client::builder()
|
| 952 |
+
.https_only(true)
|
| 953 |
.connect_timeout(Duration::from_secs(20))
|
| 954 |
.timeout(Duration::from_secs(180))
|
| 955 |
.tcp_keepalive(Duration::from_secs(30))
|