- Refactored the promo code creation process into a step-by-step flow, improving user guidance and validation. - Introduced bulk promo code creation with a structured multi-step process, allowing admins to create multiple codes efficiently. - Added new states for managing the promo code creation process and bulk operations. - Implemented panel statistics retrieval to provide admins with insights into system performance and user activity. - Updated localization files to support new messages and prompts related to promo code management and statistics.
29 lines
1009 B
Python
29 lines
1009 B
Python
from aiogram.fsm.state import State, StatesGroup
|
|
|
|
|
|
class AdminStates(StatesGroup):
|
|
|
|
waiting_for_broadcast_message = State()
|
|
confirming_broadcast = State()
|
|
waiting_for_promo_details = State()
|
|
waiting_for_promo_code = State()
|
|
waiting_for_promo_bonus_days = State()
|
|
waiting_for_promo_max_activations = State()
|
|
waiting_for_promo_validity_days = State()
|
|
waiting_for_promo_description = State()
|
|
waiting_for_promo_edit_details = State()
|
|
waiting_for_bulk_promo_details = State()
|
|
waiting_for_bulk_promo_quantity = State()
|
|
waiting_for_bulk_promo_bonus_days = State()
|
|
waiting_for_bulk_promo_max_activations = State()
|
|
waiting_for_bulk_promo_validity_days = State()
|
|
waiting_for_user_id_to_ban = State()
|
|
waiting_for_user_id_to_unban = State()
|
|
|
|
waiting_for_user_id_for_logs = State()
|
|
|
|
# User management states
|
|
waiting_for_user_search = State()
|
|
waiting_for_subscription_days_to_add = State()
|
|
waiting_for_direct_message_to_user = State()
|