Add startup handler

This commit is contained in:
BarsTiger
2023-10-07 22:33:26 +03:00
parent cdf83d2be1
commit e25b61a8ea
17 changed files with 79 additions and 1 deletions

View File

@@ -1 +1,21 @@
pass
from rich import print
async def runner():
from .common import dp, bot
from . import handlers
dp.include_router(
handlers.router
)
await bot.delete_webhook(drop_pending_updates=True)
await dp.start_polling(bot)
def main():
import asyncio
print('Starting...')
asyncio.run(runner())