fix(telegram): keep foreign stop commands on topic lanes · openclaw/openclaw@84c9286
steipete
·
2026-05-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -89,6 +89,30 @@ describe("getTelegramSequentialKey", () => {
|
89 | 89 | }, |
90 | 90 | "telegram:-100:control", |
91 | 91 | ], |
| 92 | +[ |
| 93 | +{ |
| 94 | +me: { username: "openclaw_bot" }, |
| 95 | +message: mockMessage({ |
| 96 | +chat: mockChat({ id: -100, type: "supergroup", is_forum: true }), |
| 97 | +is_topic_message: true, |
| 98 | +message_thread_id: 5907, |
| 99 | +text: "/stop@some_other_bot", |
| 100 | +}), |
| 101 | +}, |
| 102 | +"telegram:-100:topic:5907", |
| 103 | +], |
| 104 | +[ |
| 105 | +{ |
| 106 | +me: { username: "openclaw_bot" }, |
| 107 | +message: mockMessage({ |
| 108 | +chat: mockChat({ id: -100, type: "supergroup", is_forum: true }), |
| 109 | +is_topic_message: true, |
| 110 | +message_thread_id: 5907, |
| 111 | +text: "/stop@openclaw_bot!", |
| 112 | +}), |
| 113 | +}, |
| 114 | +"telegram:-100:control", |
| 115 | +], |
92 | 116 | [ |
93 | 117 | { message: mockMessage({ chat: mockChat({ id: 123 }), text: "/status" }) }, |
94 | 118 | "telegram:123:control", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。