mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08: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
|
|
);
|
|
}
|