fix(telegram): add group_policy config for Telegram groups

Add `group_policy` field to `TelegramConfig` with "open" (default) and
"mention" options, consistent with Slack and Matrix channel configs.
This commit is contained in:
Sense_wang
2026-03-01 16:50:02 +00:00
parent a5962170f6
commit 43329018f7

View File

@@ -31,6 +31,7 @@ class TelegramConfig(Base):
allow_from: list[str] = Field(default_factory=list) # Allowed user IDs or usernames
proxy: str | None = None # HTTP/SOCKS5 proxy URL, e.g. "http://127.0.0.1:7890" or "socks5://127.0.0.1:1080"
reply_to_message: bool = False # If true, bot replies quote the original message
group_policy: Literal["open", "mention"] = "open" # "open" responds to all, "mention" only when @mentioned or replied to
class FeishuConfig(Base):