refactor: generalize channel type handling across various components

This commit is contained in:
Lauren ten Hoor
2026-02-10 09:56:17 +08:00
parent cb0f628772
commit 38ad3fe27f
8 changed files with 36 additions and 37 deletions

View File

@@ -298,8 +298,7 @@ export function createTaskCompleteTool(api: OpenClawPluginApi) {
workspaceDir,
config: notifyConfig,
groupId,
// Channel detection: default to telegram if not available
channel: "telegram",
channel: project.channel ?? "telegram",
},
);