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.
This commit is contained in:
machka-pasla
2025-09-05 14:58:20 +03:00
parent d94430c602
commit 7fa670c1e8
+3
View File
@@ -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(