purchase notify, fix preview

This commit is contained in:
user committed 2025-02-05 13:06:30 +03:00
1 parent 21a83cf5b8
commit 4d15211344
3 files changed
+26 -2

No files matched your search

+2 -2
View File
@@ -169,7 +169,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
content_list.append(
types.InlineQueryResultCachedAudio(
id=f"NC_{content.id}_{int(datetime.now().timestamp() // 60)}",
audio_file_id=decrypted_content.meta.get('telegram_file_cache_preview', decrypted_content.meta['telegram_file_cache']),
audio_file_id=decrypted_content.meta['telegram_file_cache_preview'],
title=title,
performer=performer,
caption=hashtags_str + user.translated('p_playerContext_preview'),
@@ -194,7 +194,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
content_list.append(
types.InlineQueryResultCachedVideo(
id=f"NC_{content.id}_{int(datetime.now().timestamp() // 60)}",
video_file_id=decrypted_content.meta.get('telegram_file_cache_preview', decrypted_content.meta['telegram_file_cache']),
video_file_id=decrypted_content.meta['telegram_file_cache_preview'],
title=title,
caption=hashtags_str + user.translated('p_playerContext_preview'),
parse_mode='html',