Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Commit 9b30d2c

Browse files
authored
post files in text endpoint (#16)
* post files in text endpoint to avoid vk_api design madness
1 parent f0e6ff7 commit 9b30d2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

design_bot/routes/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async def upload_text(
101101
if next_video:
102102
if next_video.id != video_id:
103103
raise HTTPException(403, "Forbidden, this video completed/not allowed")
104-
if next_video.request_type != RequestTypes.TEXT:
104+
if next_video.request_type != RequestTypes.TEXT and next_video.request_type != RequestTypes.FILE:
105105
raise HTTPException(403, f"Forbidden, invalid video request type use {next_video.request_type} handler")
106106
link = await upload_text_to_drive(
107107
first_name=user.first_name,

0 commit comments

Comments
 (0)