reset content cache

This commit is contained in:
user 2025-02-05 16:10:05 +03:00
parent 9772729511
commit a2c3fe4f98
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
# Upload preview of decrypted content (limit to 30 seconds) # Upload preview of decrypted content (limit to 30 seconds)
if content_type_declared in ('audio', 'video'): if content_type_declared in ('audio', 'video'):
if not decrypted_content.meta.get('telegram_file_cache_preview'): if True or not decrypted_content.meta.get('telegram_file_cache_preview'):
try: try:
# Construct URL for trimmed preview using decrypted content # Construct URL for trimmed preview using decrypted content
preview_url = f"{PROJECT_HOST}/api/v1/storage/{decrypted_content.cid.serialize_v2(include_accept_type=True)}?seconds_limit=30" preview_url = f"{PROJECT_HOST}/api/v1/storage/{decrypted_content.cid.serialize_v2(include_accept_type=True)}?seconds_limit=30"