fix converting mp4
This commit is contained in:
1 parent
9adc4c2bd0
commit
2a97a9914d
3 files changed
+6
-4
No files matched your search
@@ -134,8 +134,8 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||
if content_type_declared == 'audio':
|
||||
content_list.append(
|
||||
types.InlineQueryResultAudio(
|
||||
id=f"NC_{content.id}",
|
||||
audio_url=decrypted_content.web_url + '?seconds_limit=30',
|
||||
id=f"NC_{content.id}_{int(datetime.now().timestamp() // 60)}",
|
||||
audio_url=encrypted_content.meta['telegram_file_cache'],
|
||||
title=title,
|
||||
performer=performer,
|
||||
caption=hashtags_str + user.translated('p_playerContext_preview'),
|
||||
@@ -159,7 +159,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||
elif content_type_declared == 'video':
|
||||
content_list.append(
|
||||
types.InlineQueryResultCachedVideo(
|
||||
id=f"NC_{content.id}",
|
||||
id=f"NC_{content.id}_{int(datetime.now().timestamp() // 60)}",
|
||||
video_file_id=encrypted_content.meta['telegram_file_cache'],
|
||||
title=title,
|
||||
caption=hashtags_str + user.translated('p_playerContext_preview'),
|
||||
|
||||
Reference in new issue
Block a user