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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user