From 544f405572602f3f631dfc2fde79dee048fa70d2 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Mon, 8 Aug 2022 18:44:49 +0300 Subject: [PATCH] add apscheduler --- main.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.py b/main.py index ce2a7de..a9336d5 100644 --- a/main.py +++ b/main.py @@ -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)