mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user