From b608be348888505b23bb4b2f1c8c42058a28e64e Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Tue, 17 Feb 2026 23:10:37 +0530 Subject: [PATCH] test: align telegram native command expectations openclaw#19257 thanks @akramcodez --- src/telegram/bot.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/telegram/bot.test.ts b/src/telegram/bot.test.ts index e8c2e39e0d0..6c37766198c 100644 --- a/src/telegram/bot.test.ts +++ b/src/telegram/bot.test.ts @@ -5,6 +5,7 @@ import { listNativeCommandSpecs, listNativeCommandSpecsForConfig, } from "../auto-reply/commands-registry.js"; +import { normalizeTelegramCommandName } from "../config/telegram-custom-commands.js"; import { answerCallbackQuerySpy, commandSpy, @@ -72,7 +73,7 @@ describe("createTelegramBot", () => { }>; const skillCommands = resolveSkillCommands(config); const native = listNativeCommandSpecsForConfig(config, { skillCommands }).map((command) => ({ - command: command.name, + command: normalizeTelegramCommandName(command.name), description: command.description, })); expect(registered.slice(0, native.length)).toEqual(native); @@ -113,7 +114,7 @@ describe("createTelegramBot", () => { }>; const skillCommands = resolveSkillCommands(config); const native = listNativeCommandSpecsForConfig(config, { skillCommands }).map((command) => ({ - command: command.name, + command: normalizeTelegramCommandName(command.name), description: command.description, })); const nativeStatus = native.find((command) => command.command === "status");