def main_loop():
while True:
try:
bot.polling(none_stop=True)
except Exception as e:
print("Exception occurred:", e)
break
time.sleep(2)
os.execv(sys.executable, ['python'] + sys.argv)
pass
else:
break
while 1:
time.sleep(3)
评论列表
文章目录