-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.py
52 lines (36 loc) · 1.06 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from aiogram.dispatcher.filters.state import State, StatesGroup
from enum import Enum
TOKEN = '' # token from BotFather
ADMINS = ['first_example', 'second_example'] # telegram identifiers (id) of admins (not necessary).
DB = 'db.db' # database file name
# These variables are needed only if you use Payok
RETURN_URL = 'https://t.me/anonchik_chat_bot' # Your bot link
API_ID = 'int'
API_KEY = 'str'
SHOP_ID = 'int'
SECRET_KEY = 'str'
class RegState(StatesGroup):
name = State()
sex = State()
age = State()
country = State()
city = State()
op_sex = State()
class SetName(Enum):
nothing = 'nothing_name'
waiting = 'waiting_name'
class SetAge(Enum):
nothing = 'nothing_age'
waiting = 'waiting_age'
class SetSex(Enum):
nothing = 'nothing_sex'
waiting = 'waiting_sex'
class SetCountry(Enum):
nothing = 'nothing_country'
waiting = 'waiting_country'
class SetCity(Enum):
nothing = 'nothing_city'
waiting = 'waiting_waiting'
class SetOpSex(Enum):
nothing = 'nothing_op_sex'
waiting = 'waiting_op_sex'