Configuration and Deployment
Required Script Properties
| Property | Purpose |
|---|---|
TELEGRAM_BOT_TOKEN | BotFather token |
SPREADSHEET_ID | Target Google Spreadsheet ID |
WEB_APP_URL | Production Apps Script /exec URL |
WEBHOOK_SECRET_PATH | Random secret of at least 32 allowed characters |
AUTHORIZED_TELEGRAM_USER_IDS | Protected bootstrap-owner numeric IDs |
Local validation and push
pnpm install
pnpm run verify
pnpm run push
pnpm run open
Production deployment
- Run
setupSpreadsheetafter schema changes. - Run
setupMaintenanceTriggeronce. - Edit the web-app deployment and select New version.
- Keep Execute as me and Who has access: Anyone.
- Deploy without changing the production
/execURL. - Run
setTelegramWebhook. - Run
getTelegramWebhookInfoand require zero pending updates and no error. - Smoke-test access, one confirmed expense, and a report.
Changing Script Properties does not require a new deployment. Changing source code does.