async def managing_admin_list_admins_back(callback: types.CallbackQuery): """Возвращает в главное меню управления администрации""" await callback.answer() user = DataBaseFunc.get_user(callback.from_user.id) await callback.message.edit_text( get_text(user, 'admin_menu_managing_admins'), reply_markup=AdminGenerateKeyboard.admin_menu_managing_admins(user)) await AdminStateManagingAdmin.main_menu.set()
async def managing_admins_main_menu_add_admin_back( callback: types.CallbackQuery): """Кнопка назад из ввода имени для добавления администратора""" await callback.answer() user = DataBaseFunc.get_user(callback.from_user.id) await callback.message.edit_text( get_text(user, 'admin_menu_managing_admins'), reply_markup=AdminGenerateKeyboard.admin_menu_managing_admins(user)) await AdminStateManagingAdmin.main_menu.set()
async def admin_menu_managing_admins(callback : types.CallbackQuery): """Отправляет меню управление администрацией бота""" await callback.answer() user = DataBaseFunc.get_user(callback.from_user.id) await callback.message.edit_text(get_text(user, 'admin_menu_managing_admins'), reply_markup=AdminGenerateKeyboard.admin_menu_managing_admins(user)) await AdminStateManagingAdmin.main_menu.set()