diff --git a/src/bot/__init__.py b/src/bot/__init__.py index 183d764..e56b04b 100644 --- a/src/bot/__init__.py +++ b/src/bot/__init__.py @@ -20,8 +20,7 @@ async def start_bot( connect_handlers(dispatcher) connect_middlewares(dispatcher) - async def on_startup(bot: Bot): - await bot.delete_webhook(drop_pending_updates=True) - await registry.set_menu(bot) + await bot.delete_webhook(drop_pending_updates=True) + await registry.set_menu(bot) - await dispatcher.start_polling(bot, on_startup=on_startup) + await dispatcher.start_polling(bot) diff --git a/src/bot/services/database/__init__.py b/src/bot/services/database/__init__.py new file mode 100644 index 0000000..a9a2c5b --- /dev/null +++ b/src/bot/services/database/__init__.py @@ -0,0 +1 @@ +__all__ = []