mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
Fix
This commit is contained in:
@@ -18,9 +18,10 @@ router = APIRouter(
|
||||
async def upload_file(
|
||||
file: UploadFile,
|
||||
file_size: Annotated[int, Form()],
|
||||
filename: Annotated[str, Form()],
|
||||
caption: Annotated[Optional[str], Form()],
|
||||
):
|
||||
return await FileUploader.upload(file, file_size, caption=caption)
|
||||
return await FileUploader.upload(file, filename, file_size, caption=caption)
|
||||
|
||||
|
||||
@router.get("/download_by_message/{chat_id}/{message_id}")
|
||||
|
||||
Reference in New Issue
Block a user