Add storage, syncing db, rename module
This commit is contained in:
8
bot/common.py
Normal file
8
bot/common.py
Normal 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']
|
||||
Reference in New Issue
Block a user