purchase notify, fix preview
This commit is contained in:
1 parent
21a83cf5b8
commit
4d15211344
3 files changed
+26
-2
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user