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

This commit is contained in:
justuser-31 2026-02-05 20:11:50 +03:00
parent f06de54ee0
commit 64c46c81cb

View File

@ -198,6 +198,13 @@ def handle_user_leave(message):
)
from time import sleep
if __name__ == "__main__":
while True:
try:
print("SFS Bot started...")
bot.polling(none_stop=True)
except KeyboardInterrupt:
exit(0)
except:
sleep(0.5)