bot inactive: will this work?

This commit is contained in:
BennyThink
2021-02-03 16:45:29 +08:00
parent cd09cd9c7e
commit 3ddfa372f2

View File

@@ -365,11 +365,4 @@ if __name__ == '__main__':
scheduler = BackgroundScheduler()
scheduler.add_job(reset_request, 'cron', hour=0, minute=0)
scheduler.start()
# this might work
bot.infinity_polling()
# while True:
# try:
# bot.polling(none_stop=True)
# except Exception as e:
# time.sleep(2)
#
bot.polling()