try send cached video
This commit is contained in:
1 parent
e3906c8ce0
commit
0f6c0fe09d
2 files changed
+20
-6
No files matched your search
@@ -158,13 +158,13 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
|
||||
)
|
||||
elif content_type_declared == 'video':
|
||||
content_list.append(
|
||||
types.InlineQueryResultVideo(
|
||||
types.InlineQueryResultCachedVideo(
|
||||
id=f"NC_{content.id}",
|
||||
video_url=decrypted_content.web_url + '?seconds_limit=30',
|
||||
video_file_id=encrypted_content.meta['telegram_file_cache'],
|
||||
title=title,
|
||||
caption=hashtags_str + user.translated('p_playerContext_preview'),
|
||||
mime_type="video/mp4",
|
||||
thumbnail_url='https://raw.githubusercontent.com/my-mirror/assets/refs/heads/main/video_icon.png',
|
||||
# mime_type="video/mp4",
|
||||
# thumbnail_url='https://raw.githubusercontent.com/my-mirror/assets/refs/heads/main/video_icon.png',
|
||||
parse_mode='html',
|
||||
reply_markup=get_inline_keyboard([
|
||||
[{
|
||||
|
||||
Reference in new issue
Block a user