This commit is contained in:
2023-08-09 17:34:43 +02:00
parent 8169d832a8
commit 027b1acb73
2 changed files with 16 additions and 8 deletions

View File

@@ -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}")