Add storage, syncing db, rename module

This commit is contained in:
BarsTiger
2023-10-08 21:21:15 +03:00
parent 42d7f7d235
commit 0135294fcb
25 changed files with 281 additions and 2 deletions

8
bot/common.py Normal file
View File

@@ -0,0 +1,8 @@
from aiogram import Bot, Dispatcher
from bot.modules.fsm import InDbStorage
from .utils.config import config
bot = Bot(token=config.telegram.bot_token)
dp = Dispatcher(storage=InDbStorage())
__all__ = ['bot', 'dp', 'config']