feat(telegram_bot): added states folder
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
|
||||
|
||||
class AuthState(StatesGroup):
|
||||
advertiser_id = State()
|
||||
@@ -0,0 +1,16 @@
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
|
||||
|
||||
class CampaignState(StatesGroup):
|
||||
ad_title = State()
|
||||
ad_text = State()
|
||||
impressions_limit = State()
|
||||
clicks_limit = State()
|
||||
cost_per_impression = State()
|
||||
cost_per_click = State()
|
||||
start_date = State()
|
||||
end_date = State()
|
||||
gender = State()
|
||||
age_from = State()
|
||||
age_to = State()
|
||||
location = State()
|
||||
@@ -0,0 +1,6 @@
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
|
||||
|
||||
class CampaignsDailogState(StatesGroup):
|
||||
campaigns = State()
|
||||
campaign = State()
|
||||
@@ -0,0 +1,5 @@
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
|
||||
|
||||
class StartDialogState(StatesGroup):
|
||||
start = State()
|
||||
Reference in New Issue
Block a user