-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py.example
45 lines (36 loc) · 961 Bytes
/
config.py.example
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
API_TOKEN = "123456789:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
SKIP_UPDATES = True
# default parse_mode is None
# it can be "html" or "markdown"
PARSE_MODE = None
# example: socks5://127.0.0.1:1080
PROXY = None
# example:
# from aiohttp import BasicAuth
# PROXY_AUTH = BasicAuth(
# USERNAME,
# PASSWORD
# )
PROXY_AUTH = None
# example:
# MYSQL = mysql+pymysql://USER:PASS@HOST:PORT/DB?charset=utf8mb4
# SQLITE = sqlite:///database.sqlite
DATABASE_URL = "sqlite:///database.sqlite"
# example:
# redis://[:password@]host[:port][/db-number][?option=value]
# redis://localhost/0
# note: if REDIS_URL is set, APSCHEDULER & Aiogram (fsm_storage) use it. otherwise, they use memory
REDIS_URL = None
HANDLERS_DIR = "handlers"
MODELS_DIR = "models"
CONTEXT_FILE = "context"
# if REDIS_URL is set, APSCHEDULER uses redis to store jobs
ENABLE_APSCHEDULER = True
SUDOERS = [
388618835,
]
HANDLERS = [
"middlewares",
"start",
"scheduler_example"
]