Answer the question
In order to leave comments, you need to log in
Why doesn't schedule work?
I use the aiogram library to write a Telegram bot.
async def msg():
await bot.send_message(config.admin_id, 'test')
schedule.every(1).minutes.do(msg)
while True:
schedule.run_pending()
time.sleep(1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question