add: logs to telegram_bot
All checks were successful
Build and Deploy / deploy (push) Successful in 21s
All checks were successful
Build and Deploy / deploy (push) Successful in 21s
This commit is contained in:
@ -36,9 +36,10 @@ def verify_code(message):
|
|||||||
bot.reply_to(message, "✅ Аккаунт подтвержден!")
|
bot.reply_to(message, "✅ Аккаунт подтвержден!")
|
||||||
else:
|
else:
|
||||||
bot.reply_to(message, f"❌ Ошибка: {response.json().get('detail')}")
|
bot.reply_to(message, f"❌ Ошибка: {response.json().get('detail')}")
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
print(API_URL)
|
print(API_URL)
|
||||||
bot.reply_to(message, "⚠️ Сервер недоступен")
|
bot.reply_to(message, "⚠️ Сервер недоступен. Детальная информация: " + str(e))
|
||||||
|
|
||||||
del user_states[message.chat.id]
|
del user_states[message.chat.id]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user