Skip to main content

Configuration and Deployment

Required Script Properties​

PropertyPurpose
TELEGRAM_BOT_TOKENBotFather token
SPREADSHEET_IDTarget Google Spreadsheet ID
WEB_APP_URLProduction Apps Script /exec URL
WEBHOOK_SECRET_PATHRandom secret of at least 32 allowed characters
AUTHORIZED_TELEGRAM_USER_IDSProtected bootstrap-owner numeric IDs

Local validation and push​

pnpm install
pnpm run verify
pnpm run push
pnpm run open

Production deployment​

  1. Run setupSpreadsheet after schema changes.
  2. Run setupMaintenanceTrigger once.
  3. Edit the web-app deployment and select New version.
  4. Keep Execute as me and Who has access: Anyone.
  5. Deploy without changing the production /exec URL.
  6. Run setTelegramWebhook.
  7. Run getTelegramWebhookInfo and require zero pending updates and no error.
  8. Smoke-test access, one confirmed expense, and a report.

Changing Script Properties does not require a new deployment. Changing source code does.