From e95b723b824fefe5744aa576bef10f6ea2b4ecb1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 4 Apr 2026 05:26:40 +0100 Subject: [PATCH] fix: load telegram command config from contract surfaces --- extensions/telegram/contract-surfaces.ts | 6 ++++++ src/config/telegram-command-config.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions/telegram/contract-surfaces.ts b/extensions/telegram/contract-surfaces.ts index 680801f3468..10b8783dd0b 100644 --- a/extensions/telegram/contract-surfaces.ts +++ b/extensions/telegram/contract-surfaces.ts @@ -3,6 +3,12 @@ export { collectRuntimeConfigAssignments, secretTargetRegistryEntries, } from "./src/secret-contract.js"; +export { + TELEGRAM_COMMAND_NAME_PATTERN, + normalizeTelegramCommandDescription, + normalizeTelegramCommandName, + resolveTelegramCustomCommands, +} from "./src/command-config.js"; export { singleAccountKeysToMove } from "./src/setup-contract.js"; export function hasConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean { diff --git a/src/config/telegram-command-config.ts b/src/config/telegram-command-config.ts index e523dadded6..9a3ec2ee276 100644 --- a/src/config/telegram-command-config.ts +++ b/src/config/telegram-command-config.ts @@ -29,7 +29,7 @@ type TelegramCommandConfigContract = { function loadTelegramCommandConfigContract(): TelegramCommandConfigContract { const contract = getBundledChannelContractSurfaceModule({ pluginId: "telegram", - preferredBasename: "contract-api.ts", + preferredBasename: "contract-surfaces.ts", }); if (!contract) { throw new Error("telegram command config contract surface is unavailable");