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:
@@ -130,6 +130,9 @@ async def admin_panel_actions_callback_handler(
|
|||||||
elif action == "ads":
|
elif action == "ads":
|
||||||
from . import ads as admin_ads_handlers
|
from . import ads as admin_ads_handlers
|
||||||
await admin_ads_handlers.show_ads_menu(callback, settings, i18n_data, session)
|
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":
|
elif action == "main":
|
||||||
try:
|
try:
|
||||||
await callback.message.edit_text(
|
await callback.message.edit_text(
|
||||||
|
|||||||
Reference in New Issue
Block a user