This commit is contained in:
2023-08-09 02:40:45 +02:00
parent c19d3e6e94
commit 7f3fb20cb8

View File

@@ -29,7 +29,7 @@ pub async fn download_from_telegram_files(
let response = reqwest::Client::new() let response = reqwest::Client::new()
.get(url) .get(url)
.header("Authorization", CONFIG.library_api_key.clone()) .header("Authorization", CONFIG.files_api_key.clone())
.send() .send()
.await? .await?
.error_for_status()?; .error_for_status()?;
@@ -73,7 +73,7 @@ pub async fn upload_to_telegram_files(
let response = reqwest::Client::new() let response = reqwest::Client::new()
.post(url) .post(url)
.header("Authorization", CONFIG.library_api_key.clone()) .header("Authorization", CONFIG.files_api_key.clone())
.multipart(form) .multipart(form)
.send() .send()
.await? .await?