From 81155c9151cff9e80d01c3f3c0dbf9e8712673b9 Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Fri, 5 Sep 2025 15:00:47 +0300 Subject: [PATCH] Add ads creation action to admin panel - Introduced a new action for starting the ad creation process in the admin panel, enhancing ad management capabilities. - Organized imports related to ad handling for better modularity and clarity 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 677630b..996cd83 100644 --- a/bot/handlers/admin/common.py +++ b/bot/handlers/admin/common.py @@ -130,6 +130,9 @@ async def admin_panel_actions_callback_handler( elif action == "ads": from . import ads as admin_ads_handlers await admin_ads_handlers.show_ads_menu(callback, settings, i18n_data, session) + elif action == "ads_create": + from . import ads as admin_ads_handlers + await admin_ads_handlers.ads_create_start(callback, state, settings, i18n_data) elif action == "main": try: await callback.message.edit_text(