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

This commit is contained in:
2026-06-11 13:18:22 +03:00
parent fe3987d2ad
commit 76a2f9c68b
+7
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)