Исправление краша бота

This commit is contained in:
2026-06-11 13:18:22 +03:00
parent fe3987d2ad
commit 76a2f9c68b
+9 -2
View File
@@ -198,6 +198,13 @@ def handle_user_leave(message):
) )
from time import sleep
if __name__ == "__main__": if __name__ == "__main__":
print("SFS Bot started...") while True:
bot.polling(none_stop=True) try:
print("SFS Bot started...")
bot.polling(none_stop=True)
except KeyboardInterrupt:
exit(0)
except:
sleep(0.5)