You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/extensions/telegram/configured-state.ts

7 lines
219 B
TypeScript

export function hasTelegramConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {
return (
typeof params.env?.TELEGRAM_BOT_TOKEN === "string" &&
params.env.TELEGRAM_BOT_TOKEN.trim().length > 0
);
}