old_01
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from .checkout_state import CheckoutState
|
||||
from .product_state import ProductState, CategoryState
|
||||
from .sos_state import SosState, AnswerState
|
||||
@@ -0,0 +1,7 @@
|
||||
from aiogram.dispatcher.filters.state import StatesGroup, State
|
||||
|
||||
class CheckoutState(StatesGroup):
|
||||
check_cart = State()
|
||||
name = State()
|
||||
address = State()
|
||||
confirm = State()
|
||||
@@ -0,0 +1,11 @@
|
||||
from aiogram.dispatcher.filters.state import StatesGroup, State
|
||||
|
||||
class ProductState(StatesGroup):
|
||||
title = State()
|
||||
body = State()
|
||||
image = State()
|
||||
price = State()
|
||||
confirm = State()
|
||||
|
||||
class CategoryState(StatesGroup):
|
||||
title = State()
|
||||
@@ -0,0 +1,9 @@
|
||||
from aiogram.dispatcher.filters.state import StatesGroup, State
|
||||
|
||||
class SosState(StatesGroup):
|
||||
question = State()
|
||||
submit = State()
|
||||
|
||||
class AnswerState(StatesGroup):
|
||||
answer = State()
|
||||
submit = State()
|
||||
Reference in New Issue
Block a user