mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
fix: load telegram command config from contract surfaces
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -29,7 +29,7 @@ type TelegramCommandConfigContract = {
|
||||
function loadTelegramCommandConfigContract(): TelegramCommandConfigContract {
|
||||
const contract = getBundledChannelContractSurfaceModule<TelegramCommandConfigContract>({
|
||||
pluginId: "telegram",
|
||||
preferredBasename: "contract-api.ts",
|
||||
preferredBasename: "contract-surfaces.ts",
|
||||
});
|
||||
if (!contract) {
|
||||
throw new Error("telegram command config contract surface is unavailable");
|
||||
|
||||
Reference in New Issue
Block a user