feat(global): init structure
This commit is contained in:
16
src/bot/common.py
Normal file
16
src/bot/common.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from aiogram import Bot, Dispatcher
|
||||
from aiogram.client.default import DefaultBotProperties
|
||||
from aiogram.fsm.storage.memory import MemoryStorage
|
||||
|
||||
from utils import env
|
||||
from utils.config import config, dconfig
|
||||
|
||||
bot = Bot(
|
||||
token=env.bot.token.get_secret_value(),
|
||||
default=DefaultBotProperties(parse_mode="HTML"),
|
||||
)
|
||||
storage = MemoryStorage()
|
||||
dp = Dispatcher(storage=storage)
|
||||
|
||||
|
||||
__all__ = ["bot", "dp", "config", "dconfig"]
|
||||
Reference in New Issue
Block a user