Fix yt-dlp title error, and inline title

This commit is contained in:
2025-12-05 22:16:33 +03:00
parent 5c280a4d3a
commit ec0fd18317
4 changed files with 188 additions and 7 deletions

View File

@@ -214,7 +214,15 @@ async def callback_handler(client: Client, callback_query: CallbackQuery):
elif data.startswith("video_select:"):
# Handle video selection from webpage
video_url = data.replace("video_select:", "", 1)
selection_id = data.replace("video_select:", "", 1)
# Retrieve video URL from cache using short identifier
from bot.modules.message_handler.video_selection_cache import get_video_selection
video_url = get_video_selection(selection_id, user_id=user_id)
if not video_url:
await callback_query.answer("❌ Ссылка истекла или не найдена. Пожалуйста, попробуйте снова.", show_alert=True)
return
# Create task for selected video
try: