mirror of
https://github.com/wasrusgen/wasrusgen1-crm.git
synced 2026-06-03 15:04:47 +00:00
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:
parent
435f9b9a4d
commit
e0ee138b2b
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user