Fix [bot]: delete on_startup func, add place for database service

on_startup func: doesn't work, removed.
This commit is contained in:
Kirill Samoylenkov 2025-10-21 00:09:20 +05:00
parent 9c7a8bf2a2
commit f7cb74e4c2
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -0,0 +1 @@
__all__ = []