from aiogram import types from load import dp, bot, messages from keyboard.default.admin.main_menu import main_menu @dp.message_handler(lambda x: x.text == messages.admin_panel, is_admin=True) async def cmd_menu(message: types.Message): await bot.send_message(message.chat.id, "Admin panel", reply_markup=main_menu())