12 lines
328 B
Python
12 lines
328 B
Python
from aiogram import Bot, Dispatcher
|
|
from aiogram.contrib.middlewares.logging import LoggingMiddleware
|
|
|
|
from config import config
|
|
|
|
|
|
telegram_bot = Bot(token=config.teletoken)
|
|
telegram_dispatcher = Dispatcher(telegram_bot)
|
|
telegram_dispatcher.middleware.setup(LoggingMiddleware())
|
|
|
|
|
|
__all__ = ('telegram_bot', telegram_dispatcher) |