InlineQueryResultVideo Aiogram | Не отправляется видео

Фотография

Вот часть кода:

@router.inline_query()
async def inline_search(inline_query: InlineQuery, bot: Bot, session: AsyncSession):
    user_id = inline_query.from_user.id
    user_message = inline_query.query.strip()

    is_banned = await fetch_user_is_banned(session, user_id)
    url_pattern = await load_urls()
    match = re.search(url_pattern, user_message)

    if match:
        title_key = "QUERY.BANNED.TITLE" if is_banned else "QUERY.TITLE"
        description_key = "QUERY.BANNED.DESC" if is_banned else "QUERY.DESC"
        text_key = "QUERY.BANNED.MESSAGE" if is_banned else "SUCCESS.SEND_VIDEO"

        title = await _(title_key, session, user_id)
        description = await _(description_key, session, user_id)
        text = await _(text_key, session, user_id)
        
        if is_banned:
            result = InlineQueryResultArticle(
                id = str(uuid4()),
                title = title,
                description = description,
                input_message_content = InputTextMessageContent(
                    message_text = text,
                    disable_web_page_preview = True,
                    parse_mode = ParseMode.HTML,
                ),
            )
        else:
            result = InlineQueryResultVideo(
                id = str(uuid4()),
                title = title,
                description = description,
                video_url = 'Тут большая прямая ссылка на видео',
                mime_type = "video/mp4"
            )

        await inline_query.answer(
            is_personal=True,
            cache_time=0,
            results=[result]
        )

Ответы (0 шт):