add apscheduler

This commit is contained in:
Dmitry Afanasyev 2022-08-08 18:44:49 +03:00
parent 38382304a8
commit 544f405572

View File

@ -48,12 +48,6 @@ def asyncio_schedule():
scheduler.add_job(send_message, 'interval', seconds=3)
scheduler.start()
# Execution will block here until Ctrl+C (Ctrl+Break on Windows) is pressed.
try:
asyncio.get_event_loop().run_forever()
except (KeyboardInterrupt, SystemExit):
pass
async def on_startup(dp) -> None:
await bot.set_webhook(WEBHOOK_URL)