mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-03 15:03:34 +00:00
8 lines
281 B
TypeScript
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
|
|
);
|
|
}
|