Files
openclaw/extensions/telegram/configured-state.ts
2026-06-04 22:03:15 -04:00

8 lines
281 B
TypeScript

// Telegram helper module supports configured state behavior.
export function hasTelegramConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {
return (
typeof params.env?.TELEGRAM_BOT_TOKEN === "string" &&
params.env.TELEGRAM_BOT_TOKEN.trim().length > 0
);
}