generated from geekiot/python-template
Fix [bot]: delete on_startup func, add place for database service
on_startup func: doesn't work, removed.
This commit is contained in:
parent
9c7a8bf2a2
commit
f7cb74e4c2
2 changed files with 4 additions and 4 deletions
|
|
@ -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 dispatcher.start_polling(bot, on_startup=on_startup)
|
||||
await dispatcher.start_polling(bot)
|
||||
|
|
|
|||
1
src/bot/services/database/__init__.py
Normal file
1
src/bot/services/database/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__all__ = []
|
||||
Loading…
Add table
Add a link
Reference in a new issue