Added config and current commands, Close button for inline menus, pass to all __init__s

This commit is contained in:
BarsTiger
2023-03-08 16:10:22 +02:00
parent ebdd27ece8
commit b83e649349
19 changed files with 119 additions and 5 deletions

15
bot/callbacks/common.py Normal file
View File

@@ -0,0 +1,15 @@
from bot.common import dp
from bot.callbacks.factories.common import close_keyboard_data
from aiogram import types
from bot.utils.private_keyboard import other_user
async def on_close_keyboard(call: types.CallbackQuery):
if await other_user(call):
return
await call.message.delete()
def register():
dp.register_callback_query_handler(on_close_keyboard, close_keyboard_data.filter())