diff options
Diffstat (limited to 'shared/instances.py')
| -rw-r--r-- | shared/instances.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/instances.py b/shared/instances.py index fb511b3..5528206 100644 --- a/shared/instances.py +++ b/shared/instances.py | |||
| @@ -7,10 +7,10 @@ from sqlalchemy.orm import Session, sessionmaker | |||
| 7 | from shared.settings import Chats, Settings | 7 | from shared.settings import Chats, Settings |
| 8 | 8 | ||
| 9 | settings = Settings() | 9 | settings = Settings() |
| 10 | config = Chats() | 10 | chats = Chats("data/config.json") |
| 11 | if not exists("data/config.json"): | 11 | if not exists("data/config.json"): |
| 12 | config.save("data/config.json") | 12 | chats.save() |
| 13 | config.load("data/config.json") | 13 | chats.load() |
| 14 | 14 | ||
| 15 | bot = Bot(token=settings.token) | 15 | bot = Bot(token=settings.token) |
| 16 | dp = Dispatcher(bot) | 16 | dp = Dispatcher(bot) |
