diff --git a/src/main.ts b/src/main.ts index 4eeba24..7c0c003 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,6 +13,7 @@ import { Outbound } from "./telegram/outbound.js"; import { createCalendarTool } from "./tools/calendar.js"; import { createPlaywrightMcpBridge } from "./agent/playwright-mcp.js"; import { createScheduleTool } from "./tools/schedule.js"; +import { createSendTool } from "./tools/send.js"; import { ensureWorkspace } from "./workspace.js"; function sleep(ms: number): Promise { @@ -77,6 +78,11 @@ async function main(): Promise { }; const customTools: CustomTools = [createScheduleTool(scheduler, config.timezone)]; + customTools.push(createSendTool({ + bot: bot.api, + chatId: config.telegramOwnerId, + workspaceDir: config.workspaceDir, + })); if (config.google) { customTools.push(createCalendarTool(config.google, config.timezone)); logger.info("calendar tool enabled");