Add YouTube recoding
This commit is contained in:
16
bot/handlers/on_chosen/suppress_verify.py
Normal file
16
bot/handlers/on_chosen/suppress_verify.py
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user