From c28825ec87c57698caadfe511e2d115453f0c6b0 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Thu, 23 Jul 2026 11:28:28 +0800 Subject: [PATCH] fix: use find_user_by_chat_id for expand_promo_detail AI config --- src/tg_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tg_bot.py b/src/tg_bot.py index a9847d1..ca6b582 100644 --- a/src/tg_bot.py +++ b/src/tg_bot.py @@ -535,8 +535,9 @@ def _handle_callback(bot_token: str, cfg: Config, cb: dict): "text": "🤖 *AI思考中…*", "parse_mode": "MarkdownV2", }) try: + user = find_user_by_chat_id(cfg, chat_id) details = expand_promo_detail( - cfg.ai, ctx["sender"], ctx["subject"], ctx["original_body"], + user.ai, ctx["sender"], ctx["subject"], ctx["original_body"], ) except Exception as e: send_text(bot_token, str(chat_id), f"获取详情失败: {e}")