feat(telegram): enforce canonical product routing
This commit is contained in:
@@ -171,6 +171,7 @@ class ImageAnalysisService:
|
||||
self,
|
||||
chat_id: str,
|
||||
file_id: str,
|
||||
original_message_id: int | None = None,
|
||||
question: str = "請用繁體中文描述這張圖片,如果是截圖或介面請分析其內容和問題",
|
||||
) -> None:
|
||||
"""
|
||||
@@ -192,7 +193,11 @@ class ImageAnalysisService:
|
||||
from src.services.telegram_gateway import get_telegram_gateway
|
||||
tg = get_telegram_gateway()
|
||||
await tg.initialize()
|
||||
await tg.send_as_openclaw(f"🖼️ <b>圖片分析</b>\n{result}")
|
||||
await tg.send_as_openclaw(
|
||||
f"🖼️ <b>圖片分析</b>\n{result}",
|
||||
reply_to_message_id=original_message_id,
|
||||
inbound_chat_id=chat_id,
|
||||
)
|
||||
except Exception as e:
|
||||
logger.warning("download_and_analyze_failed", error=str(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user