dowload & selectWallet & fixes & auth me
This commit is contained in:
1 parent
ac6d102a3f
commit
b02ded982c
7 files changed
+79
-8
No files matched your search
@@ -162,7 +162,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||
'mov': 'video'
|
||||
}.get(preview_content.filename.split('.')[-1], content_type_declared)
|
||||
|
||||
hashtags_str = (' '.join(f"#{_h}" for _h in metadata_content_json.get('hashtags', []))).strip()
|
||||
hashtags_str = metadata_content_json.get('description', '').strip()
|
||||
if hashtags_str:
|
||||
hashtags_str = hashtags_str + '\n'
|
||||
|
||||
@@ -212,7 +212,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||
types.InlineQueryResultCachedAudio(
|
||||
id=f"NC_{content.id}_{int(datetime.now().timestamp() // 60)}",
|
||||
audio_file_id=decrypted_content.meta['telegram_file_cache_preview'],
|
||||
caption=hashtags_str + user.translated('p_playerContext_preview'),
|
||||
caption=hashtags_str + user.translated('p_playerAudioContext_preview'),
|
||||
parse_mode='html',
|
||||
reply_markup=get_inline_keyboard([
|
||||
[
|
||||
@@ -242,7 +242,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||
id=f"NC_{content.id}_{int(datetime.now().timestamp() // 60)}",
|
||||
video_file_id=decrypted_content.meta['telegram_file_cache_preview'],
|
||||
title=title,
|
||||
caption=hashtags_str + user.translated('p_playerContext_preview'),
|
||||
caption=hashtags_str + user.translated('p_playerVideoContext_preview'),
|
||||
parse_mode='html',
|
||||
reply_markup=get_inline_keyboard([
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user