fix
This commit is contained in:
parent
45cd3968e3
commit
2f188c9e65
|
|
@ -161,6 +161,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
|
||||||
async with aiofiles.open(tempfile_path, "rb") as file:
|
async with aiofiles.open(tempfile_path, "rb") as file:
|
||||||
content_file_bin = await file.read()
|
content_file_bin = await file.read()
|
||||||
|
|
||||||
|
accept_type = 'audio/mpeg'
|
||||||
make_log(f"Storage", f"Audio {content_sha256} converted successfully")
|
make_log(f"Storage", f"Audio {content_sha256} converted successfully")
|
||||||
else:
|
else:
|
||||||
tempfile_path = tempfile_path[:-5]
|
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()
|
content_file_bin = await file.read()
|
||||||
|
|
||||||
make_log(f"Storage", f"Image {content_sha256} converted successfully")
|
make_log(f"Storage", f"Image {content_sha256} converted successfully")
|
||||||
|
accept_type = 'image/jpeg'
|
||||||
else:
|
else:
|
||||||
tempfile_path = tempfile_path[:-5]
|
tempfile_path = tempfile_path[:-5]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||||
content_list.append(
|
content_list.append(
|
||||||
types.InlineQueryResultAudio(
|
types.InlineQueryResultAudio(
|
||||||
id=f"NC_{content.id}",
|
id=f"NC_{content.id}",
|
||||||
audio_url=decrypted_content.web_url,
|
audio_url=decrypted_content.web_url + '?seconds_limit=30',
|
||||||
title=title,
|
title=title,
|
||||||
performer=performer,
|
performer=performer,
|
||||||
reply_markup=get_inline_keyboard([
|
reply_markup=get_inline_keyboard([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue