Skip to Content
Telegram BotConfiguration

Configuration

Documented in .env.example and validated in src/config.ts (Zod).

Telegram

VariablePurpose
TELEGRAM_API_ID / TELEGRAM_API_HASHFrom my.telegram.org  → API development tools.
TELEGRAM_PHONE_NUMBERE.164; used only by scripts/login.ts on first login.
TELEGRAM_SESSION_PATHPath to the persisted GramJS session string (default ./state/session.txt).
TELEGRAM_CHANNELSComma-separated public channel usernames, with or without @.
POLL_INTERVAL_SECONDSPoll cadence (default 60).
POLL_MAX_MESSAGES_PER_CHANNELPer-tick fetch limit (default 50).

State & logging

VariableDefaultPurpose
STATE_DIR./stateSession, cursors, handled set.
LOGS_DIR./logsJSONL logs.
LOG_LEVELinfoLog level.
LOG_RAW_MESSAGESfalseWhen true, every polled message is appended to logs/raw.jsonl.

Pindo SMS

VariablePurpose
PINDO_API_URLDefault https://api.pindo.io/v1/sms/.
PINDO_TOKENPindo API token.
PINDO_SENDER_IDShort alphanumeric brand (carrier limits ~11 chars in some regions).
NOTIFICATIONS_ENABLEDDefault true.
NOTIFICATION_NUMBERSComma-separated E.164 numbers (same convention as fu-strategy).

HTTP

VariableDefaultPurpose
HTTP_HOST127.0.0.1Bind address.
HTTP_PORT8081Bind port.

TELEGRAM_SESSION_PATH holds a secret session string. Keep .env and state/session.txt out of version control.

Last updated on