reset content cache
This commit is contained in:
1 parent
9772729511
commit
a2c3fe4f98
1 file changed
+1
-1
@@ -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)
|
||||
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:
|
||||
# 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"
|
||||
|
||||
Reference in new issue
Block a user