This commit is contained in:
user 2024-04-05 18:56:36 +03:00
parent 45cd3968e3
commit 2f188c9e65
2 changed files with 3 additions and 1 deletions

View File

@ -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]

View File

@ -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([