mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-15 18:56:33 +03:00
18 lines
461 B
Python
18 lines
461 B
Python
from aiogram import Bot, Dispatcher, executor
|
|
from aiogram.contrib.fsm_storage.memory import MemoryStorage
|
|
from loguru import logger
|
|
|
|
import config
|
|
import handlers
|
|
|
|
storage = MemoryStorage()
|
|
telegram_bot = Bot(token=config.TELEGRAM_BOT_TOKEN)
|
|
dp = Dispatcher(telegram_bot, storage=storage)
|
|
|
|
def on_startup():
|
|
logger.info('Registering handlers')
|
|
handlers.default.setup(dp)
|
|
|
|
if __name__ == '__main__':
|
|
on_startup()
|
|
executor.start_polling(dp,skip_updates=True) |