Add YouTube recoding

This commit is contained in:
BarsTiger
2023-11-07 14:13:14 +02:00
parent 54006008d3
commit 06c327933f
13 changed files with 245 additions and 15 deletions

View File

@@ -0,0 +1,16 @@
from aiogram import Router, Bot, F
from aiogram.types import (
ChosenInlineResult,
)
router = Router()
@router.chosen_inline_result(
F.result_id.startswith('deezc::')
)
async def on_unneeded_cached_chosen(chosen_result: ChosenInlineResult, bot: Bot):
await bot.edit_message_reply_markup(
inline_message_id=chosen_result.inline_message_id,
reply_markup=None
)