old_01
This commit is contained in:
3
doners/Shop-bot/states/__init__.py
Normal file
3
doners/Shop-bot/states/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .checkout_state import CheckoutState
|
||||
from .product_state import ProductState, CategoryState
|
||||
from .sos_state import SosState, AnswerState
|
||||
7
doners/Shop-bot/states/checkout_state.py
Normal file
7
doners/Shop-bot/states/checkout_state.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from aiogram.dispatcher.filters.state import StatesGroup, State
|
||||
|
||||
class CheckoutState(StatesGroup):
|
||||
check_cart = State()
|
||||
name = State()
|
||||
address = State()
|
||||
confirm = State()
|
||||
11
doners/Shop-bot/states/product_state.py
Normal file
11
doners/Shop-bot/states/product_state.py
Normal file
@@ -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()
|
||||
9
doners/Shop-bot/states/sos_state.py
Normal file
9
doners/Shop-bot/states/sos_state.py
Normal file
@@ -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