fix: stabilize channel migration

This commit is contained in:
Peter Steinberger committed 2026-01-13 08:40:39 +00:00
1 parent 90342a4f3a
commit 993c1de361
6 files changed
+39 -24

No files matched your search

+13 -9
View File
@@ -924,18 +924,20 @@ describe("createTelegramBot", () => {
replySpy.mockReset();
loadConfig.mockReturnValue({
telegram: {
accounts: {
opie: {
botToken: "tok-opie",
dmPolicy: "open",
channels: {
telegram: {
accounts: {
opie: {
botToken: "tok-opie",
dmPolicy: "open",
},
},
},
},
bindings: [
{
agentId: "opie",
match: { provider: "telegram", accountId: "opie" },
match: { channel: "telegram", accountId: "opie" },
},
],
});
@@ -1851,9 +1853,11 @@ describe("createTelegramBot", () => {
replySpy.mockResolvedValue({ text: "response" });
loadConfig.mockReturnValue({
telegram: {
groupPolicy: "open",
groups: { "*": { requireMention: false } },
channels: {
telegram: {
groupPolicy: "open",
groups: { "*": { requireMention: false } },
},
},
});