some fixes
This commit is contained in:
@@ -303,6 +303,7 @@ def telegram_bot():
|
||||
|
||||
if __name__ == '__main__':
|
||||
telegram_bot()
|
||||
while True:
|
||||
try:
|
||||
bot.polling(none_stop=True)
|
||||
bot.enable_save_next_step_handlers(delay=2)
|
||||
@@ -313,6 +314,3 @@ if __name__ == '__main__':
|
||||
except Exception as r:
|
||||
if LOGS:
|
||||
bot.send_message(IMPORTANT_LOGS, "Произошло что-то непредвиденное, хелп. Войс бот болеет")
|
||||
finally:
|
||||
if LOGS:
|
||||
bot.send_message(IMPORTANT_LOGS, 'Я войс бот упал, помогите')
|
||||
Reference in New Issue
Block a user