mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 00:30:21 +00:00
test(telegram): cover shared parsing without registry
This commit is contained in:
@@ -136,6 +136,22 @@ describe("registerPluginCommand", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("resolves Telegram topic command bindings without a Telegram registry entry", () => {
|
||||
expect(
|
||||
__testing.resolveBindingConversationFromCommand({
|
||||
channel: "telegram",
|
||||
from: "telegram:group:-100123",
|
||||
to: "telegram:group:-100123:topic:77",
|
||||
accountId: "default",
|
||||
}),
|
||||
).toEqual({
|
||||
channel: "telegram",
|
||||
accountId: "default",
|
||||
conversationId: "-100123",
|
||||
threadId: 77,
|
||||
});
|
||||
});
|
||||
|
||||
it("does not resolve binding conversations for unsupported command channels", () => {
|
||||
expect(
|
||||
__testing.resolveBindingConversationFromCommand({
|
||||
|
||||
Reference in New Issue
Block a user