This commit is contained in:
yasir 2023-02-27 11:28:56 +07:00
parent 1def3cae1b
commit a6575d34bc

View file

@ -77,6 +77,7 @@ async def start_bot():
chat_id, message_id = pickle.load(status)
os.remove("restart.pickle")
await app.edit_message_text(chat_id=chat_id, message_id=message_id, text="<b>Bot restarted successfully!</b>")
LOGGER.info(scheduler.get_jobs())
if bool(scheduler.get_jobs()):
scheduler.start()
asyncio.create_task(auto_clean())