This commit is contained in:
2023-08-09 03:35:32 +02:00
parent 9a03978553
commit 5a2db83494

View File

@@ -1,5 +1,6 @@
use reqwest::{Response, multipart::{Form, Part}, header};
use serde::Deserialize;
use tracing::log;
use crate::config::CONFIG;
@@ -49,6 +50,8 @@ pub async fn upload_to_telegram_files(
let headers = data_response.headers();
log::info!("{:?}", headers);
let file_size = headers
.get(header::CONTENT_LENGTH)
.unwrap()