fix: load telegram command config from contract surfaces

This commit is contained in:
Peter Steinberger
2026-04-04 05:26:40 +01:00
parent c7cb43cac9
commit e95b723b82
2 changed files with 7 additions and 1 deletions

View File

@@ -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");