mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 02:08:22 +00:00
Fix telegram threadId in deliveryContext
This commit is contained in:
committed by
Ayaan Zaidi
parent
e849df64dc
commit
a642ca4ea8
@@ -75,6 +75,19 @@ describe("delivery context helpers", () => {
|
||||
accountId: undefined,
|
||||
threadId: "999",
|
||||
});
|
||||
|
||||
expect(
|
||||
deliveryContextFromSession({
|
||||
channel: "telegram",
|
||||
lastTo: " -1001 ",
|
||||
origin: { threadId: 42 },
|
||||
}),
|
||||
).toEqual({
|
||||
channel: "telegram",
|
||||
to: "-1001",
|
||||
accountId: undefined,
|
||||
threadId: 42,
|
||||
});
|
||||
});
|
||||
|
||||
it("normalizes delivery fields and mirrors them on session entries", () => {
|
||||
|
||||
Reference in New Issue
Block a user