Skip to content

Commit 4461c3b

Browse files
committed
Refactor Telegram tools initialization to use process.env for environment variables instead of importing from env module.
1 parent cfc03a3 commit 4461c3b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/agents/telegram-agent/tools.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { env } from "@/env";
21
import { type BaseTool, McpTelegram, type SamplingHandler } from "@iqai/adk";
32

43
let tools: BaseTool[];
@@ -7,9 +6,7 @@ export const getTelegramTools = async (samplingHandler?: SamplingHandler) => {
76
if (!tools) {
87
const toolset = McpTelegram({
98
samplingHandler,
10-
env: {
11-
TELEGRAM_BOT_TOKEN: env.TELEGRAM_BOT_TOKEN,
12-
},
9+
env: process.env,
1310
});
1411
tools = await toolset.getTools();
1512
}

0 commit comments

Comments
 (0)