debug(group): 加 group_routing_check log 診斷 chat_id 不匹配
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3123,6 +3123,15 @@ class TelegramGateway:
|
||||
is_group = chat_type in ("group", "supergroup")
|
||||
is_sre_group = str(chat_id) == str(settings.SRE_GROUP_CHAT_ID)
|
||||
|
||||
logger.info(
|
||||
"group_routing_check",
|
||||
chat_id=chat_id,
|
||||
chat_type=chat_type,
|
||||
is_group=is_group,
|
||||
is_sre_group=is_sre_group,
|
||||
sre_group_config=str(settings.SRE_GROUP_CHAT_ID),
|
||||
)
|
||||
|
||||
if is_group and is_sre_group:
|
||||
await self._handle_group_message(text, user_id, username, chat_id, message_id)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user