This commit is contained in:
user committed 2025-03-01 16:04:46 +03:00
1 parent fa6f27a9ce
commit a31a40e690
5 files changed
+26 -19

No files matched your search

+2 -2
View File
@@ -137,7 +137,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
# Upload preview of decrypted content (limit to 30 seconds)
if content_type_declared in ('audio', 'video'):
if True or not decrypted_content.meta.get('telegram_file_cache_preview'):
if not decrypted_content.meta.get('telegram_file_cache_preview'):
try:
# Construct URL for trimmed preview using decrypted content
preview_content = db_session.query(StoredContent).filter_by(
@@ -174,7 +174,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
content_share_link = {
'text': user.translated('p_shareLinkContext').format(title=' – '.join(audio_title)),
'url': f"https://t.me/{CLIENT_TELEGRAM_BOT_USERNAME}/content?startapp=C{content.cid.serialize_v2()}"
'url': f"https://t.me/{CLIENT_TELEGRAM_BOT_USERNAME}/content?startapp={content.cid.serialize_v2()}"
}
# Create inline query result using decrypted content's file_id