refactor!: rename chat providers to channels

This commit is contained in:
Peter Steinberger
2026-01-13 06:16:43 +00:00
parent 0cd632ba84
commit 90342a4f3a
393 changed files with 8004 additions and 6737 deletions

View File

@@ -9,7 +9,9 @@ describe("resolveTelegramAccount", () => {
process.env.TELEGRAM_BOT_TOKEN = "";
try {
const cfg: ClawdbotConfig = {
telegram: { accounts: { work: { botToken: "tok-work" } } },
channels: {
telegram: { accounts: { work: { botToken: "tok-work" } } },
},
};
const account = resolveTelegramAccount({ cfg });
@@ -30,7 +32,9 @@ describe("resolveTelegramAccount", () => {
process.env.TELEGRAM_BOT_TOKEN = "tok-env";
try {
const cfg: ClawdbotConfig = {
telegram: { accounts: { work: { botToken: "tok-work" } } },
channels: {
telegram: { accounts: { work: { botToken: "tok-work" } } },
},
};
const account = resolveTelegramAccount({ cfg });
@@ -51,7 +55,9 @@ describe("resolveTelegramAccount", () => {
process.env.TELEGRAM_BOT_TOKEN = "";
try {
const cfg: ClawdbotConfig = {
telegram: { accounts: { work: { botToken: "tok-work" } } },
channels: {
telegram: { accounts: { work: { botToken: "tok-work" } } },
},
};
const account = resolveTelegramAccount({ cfg, accountId: "default" });