From 7fa670c1e85a3e37084728f518287cd7b8e6300a Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Fri, 5 Sep 2025 14:58:20 +0300 Subject: [PATCH] Add ads menu handler to admin panel actions - Introduced a new action for displaying the ads menu in the admin panel, enhancing the admin interface for ad management. - Improved the organization of imports related to ad handling, ensuring better modularity in the codebase. --- bot/handlers/admin/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/handlers/admin/common.py b/bot/handlers/admin/common.py index 8204404..677630b 100644 --- a/bot/handlers/admin/common.py +++ b/bot/handlers/admin/common.py @@ -127,6 +127,9 @@ async def admin_panel_actions_callback_handler( from . import payments as admin_payments_handlers await admin_payments_handlers.view_payments_handler( callback, i18n_data, settings, session) + elif action == "ads": + from . import ads as admin_ads_handlers + await admin_ads_handlers.show_ads_menu(callback, settings, i18n_data, session) elif action == "main": try: await callback.message.edit_text(