feat(telegram): add configurable group mention policy

This commit is contained in:
Re-bin
2026-03-10 04:34:15 +00:00
parent 8aa754cd2e
commit 4f9857f85f
3 changed files with 226 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ class TelegramConfig(Base):
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
group_policy: Literal["open", "mention"] = "mention" # "mention" responds when @mentioned or replied to, "open" responds to all
class FeishuConfig(Base):