fix: preserve unmatched telegram access groups · openclaw/openclaw@23920f6
steipete
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1609,6 +1609,31 @@ describe("createTelegramBot", () => {
|
1609 | 1609 | }, |
1610 | 1610 | expectedReplyCount: 1, |
1611 | 1611 | }, |
| 1612 | +{ |
| 1613 | +name: "blocks explicitly configured group when groupAllowFrom access group does not match sender", |
| 1614 | +config: { |
| 1615 | +accessGroups: { |
| 1616 | +operators: { |
| 1617 | +type: "message.senders", |
| 1618 | +members: { telegram: ["111111111"] }, |
| 1619 | +}, |
| 1620 | +}, |
| 1621 | +channels: { |
| 1622 | +telegram: { |
| 1623 | +groupPolicy: "allowlist", |
| 1624 | +groupAllowFrom: ["accessGroup:operators"], |
| 1625 | +groups: { "-100123456789": { requireMention: false } }, |
| 1626 | +}, |
| 1627 | +}, |
| 1628 | +}, |
| 1629 | +message: { |
| 1630 | +chat: { id: -100123456789, type: "group", title: "Test Group" }, |
| 1631 | +from: { id: 123456789, username: "testuser" }, |
| 1632 | +text: "hello", |
| 1633 | +date: 1736380800, |
| 1634 | +}, |
| 1635 | +expectedReplyCount: 0, |
| 1636 | +}, |
1612 | 1637 | { |
1613 | 1638 | name: "allows group messages from sender access groups in per-group allowFrom", |
1614 | 1639 | config: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。