feat(telegram): SRE 戰情室群組三頭政治 Triumvirate (ADR-053)
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 7m6s
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 7m6s
- config.py: 新增 OPENCLAW_BOT_TOKEN / NEMOTRON_BOT_TOKEN / SRE_GROUP_CHAT_ID - telegram_gateway.py: send_to_group / send_as_openclaw / send_as_nemotron / trigger_group_ai_discussion / _send_approval_card_to_group - send_approval_card 告警發送後非同步觸發群組 AI 雙向討論 - configmap: SRE_GROUP_CHAT_ID=-1003711974679 - secrets: OPENCLAW_BOT_TOKEN / NEMOTRON_BOT_TOKEN CHANGE_ME 佔位 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -345,6 +345,19 @@ class Settings(BaseSettings):
|
||||
default=False,
|
||||
description="Telegram Polling (False: OpenClaw handles it; True: only if OpenClaw unavailable)",
|
||||
)
|
||||
# 2026-04-03 ogt: SRE 戰情室群組三頭政治 (Triumvirate) — ADR-053
|
||||
OPENCLAW_BOT_TOKEN: str = Field(
|
||||
default="",
|
||||
description="@OpenClawAwoooI_Bot Token — 群組內代表 OpenClaw AI 發言",
|
||||
)
|
||||
NEMOTRON_BOT_TOKEN: str = Field(
|
||||
default="",
|
||||
description="@NemoTronAwoooI_Bot Token — 群組內代表 NemoClaw AI 發言",
|
||||
)
|
||||
SRE_GROUP_CHAT_ID: str = Field(
|
||||
default="",
|
||||
description="AwoooI SRE 戰情室群組 Chat ID",
|
||||
)
|
||||
|
||||
def get_tg_user_whitelist(self) -> list[int]:
|
||||
"""Parse comma-separated or JSON array user IDs to list[int]"""
|
||||
|
||||
Reference in New Issue
Block a user