From 1d535519efc7706147afc66a3259e45bdc17a556 Mon Sep 17 00:00:00 2001 From: gahusb Date: Mon, 13 Apr 2026 02:24:42 +0900 Subject: [PATCH] =?UTF-8?q?debug:=20webhook=20=EC=88=98=EC=8B=A0=20chat.id?= =?UTF-8?q?=20=EB=A1=9C=EA=B9=85=20+=20Telegram=20HTML=20escape=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent-office/app/telegram/webhook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent-office/app/telegram/webhook.py b/agent-office/app/telegram/webhook.py index a0ae73c..a65f992 100644 --- a/agent-office/app/telegram/webhook.py +++ b/agent-office/app/telegram/webhook.py @@ -20,6 +20,9 @@ async def handle_webhook(data: dict, agent_dispatcher=None) -> Optional[dict]: return await _handle_callback(callback_query) message = data.get("message") + if message: + chat = message.get("chat", {}) + print(f"[TG-WEBHOOK] chat.id={chat.get('id')} type={chat.get('type')} text={message.get('text')!r}", flush=True) if message and message.get("text") and agent_dispatcher is not None: return await _handle_message(message, agent_dispatcher)