add: logs to telegram_bot
All checks were successful
Build and Deploy / deploy (push) Successful in 21s

This commit is contained in:
2025-07-21 09:37:57 +05:00
parent 8a57fdad7a
commit 7ab955dbb4

View File

@ -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]