fix: tg webhook route /api/tg/webhook (nginx strips /consulting prefix)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wasrusgen 2026-05-30 16:54:49 +03:00
parent 435f9b9a4d
commit e0ee138b2b

View File

@ -1119,7 +1119,7 @@ def tg_send(chat_id, text, reply_markup=None):
except Exception as e:
app.logger.error(f"tg_send error: {e}")
@app.route("/consulting/api/tg/webhook", methods=["POST"])
@app.route("/api/tg/webhook", methods=["POST"])
def tg_webhook():
data = request.get_json(silent=True) or {}
msg = data.get("message") or data.get("callback_query", {}).get("message")