fix(telegram): expose thread create CLI remap · openclaw/openclaw@13a079b
spacegeologi
·
2026-06-14
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -36,4 +36,26 @@ describe("telegram actions contract", () => {
|
36 | 36 | |
37 | 37 | expect(capabilities).toContain("richText"); |
38 | 38 | }); |
| 39 | + |
| 40 | +it("exposes Telegram thread create CLI remapping through the exported plugin", () => { |
| 41 | +const request = telegramPlugin.actions?.resolveCliActionRequest?.({ |
| 42 | +action: "thread-create", |
| 43 | +args: { |
| 44 | +channel: "telegram", |
| 45 | +target: "-1003894873578", |
| 46 | +threadName: "Build Updates", |
| 47 | +message: "hello", |
| 48 | +}, |
| 49 | +}); |
| 50 | + |
| 51 | +expect(request).toEqual({ |
| 52 | +action: "topic-create", |
| 53 | +args: { |
| 54 | +channel: "telegram", |
| 55 | +target: "-1003894873578", |
| 56 | +name: "Build Updates", |
| 57 | +message: "hello", |
| 58 | +}, |
| 59 | +}); |
| 60 | +}); |
39 | 61 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。