diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index 5ceed04..5af00c2 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -161,6 +161,7 @@ async def s_api_v1_storage_get(request, file_hash=None): async with aiofiles.open(tempfile_path, "rb") as file: content_file_bin = await file.read() + accept_type = 'audio/mpeg' make_log(f"Storage", f"Audio {content_sha256} converted successfully") else: tempfile_path = tempfile_path[:-5] @@ -184,6 +185,7 @@ async def s_api_v1_storage_get(request, file_hash=None): content_file_bin = await file.read() make_log(f"Storage", f"Image {content_sha256} converted successfully") + accept_type = 'image/jpeg' else: tempfile_path = tempfile_path[:-5] diff --git a/app/client_bot/routers/content.py b/app/client_bot/routers/content.py index 164bcd7..e71c133 100644 --- a/app/client_bot/routers/content.py +++ b/app/client_bot/routers/content.py @@ -67,7 +67,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use content_list.append( types.InlineQueryResultAudio( id=f"NC_{content.id}", - audio_url=decrypted_content.web_url, + audio_url=decrypted_content.web_url + '?seconds_limit=30', title=title, performer=performer, reply_markup=get_inline_keyboard([