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.
This commit is contained in:
machka-pasla
2025-09-05 15:00:47 +03:00
parent 7fa670c1e8
commit 81155c9151
+3
View File
@@ -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(