diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 09649bafae..0a92a3ba4c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: "23" + node-version: "23.3.0" cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/integrationTests.yaml b/.github/workflows/integrationTests.yaml index 46ee277516..dee25a349d 100644 --- a/.github/workflows/integrationTests.yaml +++ b/.github/workflows/integrationTests.yaml @@ -21,7 +21,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: "23" + node-version: "23.3.0" cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index e228b9d071..dbadc71bda 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 23.3.0 - uses: pnpm/action-setup@v3 with: diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index fd059a3523..b8f01c18f4 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: "23" + node-version: "23.3.0" cache: "pnpm" - name: Run smoke tests diff --git a/docs/api/type-aliases/Character.md b/docs/api/type-aliases/Character.md index 5185e51693..b9dc9c987c 100644 --- a/docs/api/type-aliases/Character.md +++ b/docs/api/type-aliases/Character.md @@ -428,6 +428,10 @@ Optional client-specific config > `optional` **teamMemberInterestKeywords**: `string`[] +### clientConfig.telegram.parseMode? + +> `optional` **parseMode**: `"Markdown" | "MarkdownV2" | "HTML" | null` + ### clientConfig.slack? > `optional` **slack**: `object` diff --git a/packages/client-telegram/src/messageManager.ts b/packages/client-telegram/src/messageManager.ts index 3450ca853f..4683c2b3fe 100644 --- a/packages/client-telegram/src/messageManager.ts +++ b/packages/client-telegram/src/messageManager.ts @@ -1,6 +1,11 @@ import { Message } from "@telegraf/types"; import { Context, Telegraf } from "telegraf"; -import { composeContext, elizaLogger, ServiceType, composeRandomUser } from "@elizaos/core"; +import { + composeContext, + elizaLogger, + ServiceType, + composeRandomUser, +} from "@elizaos/core"; import { getEmbeddingZeroVector } from "@elizaos/core"; import { Content, @@ -701,7 +706,7 @@ export class MessageManager { i === 0 && replyToMessageId ? { message_id: replyToMessageId } : undefined, - parse_mode: "Markdown", + parse_mode: this.runtime.character.clientConfig.telegram.parseMode || undefined, } )) as Message.TextMessage; diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index b16d400240..a29db9c8fb 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -780,6 +780,7 @@ export type Character = { teamAgentIds?: string[]; teamLeaderId?: string; teamMemberInterestKeywords?: string[]; + parseMode?: "Markdown" | "MarkdownV2" | "HTML" | null; }; slack?: { shouldIgnoreBotMessages?: boolean; diff --git a/scripts/integrationTests.sh b/scripts/integrationTests.sh index 6dff86b571..2535dd3596 100755 --- a/scripts/integrationTests.sh +++ b/scripts/integrationTests.sh @@ -1,7 +1,7 @@ #!/bin/bash # Check Node.js version -REQUIRED_NODE_VERSION=23 +REQUIRED_NODE_VERSION=23.3.0 CURRENT_NODE_VERSION=$(node -v | cut -d'.' -f1 | sed 's/v//') if (( CURRENT_NODE_VERSION < REQUIRED_NODE_VERSION )); then