Fix download

This commit is contained in:
Шатунов Антон
2024-05-07 00:04:55 +03:00
parent 18c49d42d4
commit e75ecf427d
2 changed files with 30 additions and 35 deletions

View File

@@ -88,8 +88,7 @@ async fn upload(data: TypedMultipart<UploadFileRequest>) -> impl IntoResponse {
result.unwrap()
}
async fn download(Path(chat_id): Path<i64>, Path(message_id): Path<i32>) -> impl IntoResponse {
async fn download(Path((chat_id, message_id)): Path<(i64, i32)>) -> impl IntoResponse {
let downloader = download_file(chat_id, message_id).await;
let data = match downloader {