diff --git a/extensions/photos.py b/extensions/photos.py index 1ca11c0..a8bb6be 100644 --- a/extensions/photos.py +++ b/extensions/photos.py @@ -267,7 +267,17 @@ if configGet("media_token_access") is True: photo_get_responses = { - 200: {"content": {"image/*": {}}}, + 200: { + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary", + "contentMediaType": "image/*", + } + } + } + }, 404: PhotoNotFoundError("id").openapi, } diff --git a/extensions/videos.py b/extensions/videos.py index 12fd20b..2152d0a 100644 --- a/extensions/videos.py +++ b/extensions/videos.py @@ -93,7 +93,17 @@ async def video_upload( video_get_responses = { - 200: {"content": {"video/*": {}}}, + 200: { + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary", + "contentMediaType": "video/*", + } + } + } + }, 404: VideoNotFoundError("id").openapi, }