Cross references:
../../README.md../../docs/telegram-bot.mdScope note:
/start, /welcome, /help, /about, /version, /user, /config, /explain, /debug/invent <story>, /random, /peek, /peek<n>/vendors, /vendor, /text_vendor, /image_vendor, /models, /test/panels, /objective, /objectives, objective shortcuts, /style, style shortcuts, /new_style, /language, /mode, /consistency, /detail, /crazyness, /concurrency, /retries/prompts, /set_prompt, /list_options, /options/keys, /setkey, /unsetkey, /reset_config, /restartThis document covers local, integration, and remote validation for the Render webhook bot.
Run core local checks:
npm run test:telegram:local
Run full render test suite:
npm run test:telegram
npx vitest run -c telegram/vitest.config.js telegram/tests/interaction-suite.test.js
npx vitest run -c telegram/vitest.config.js telegram/tests/webhook-rest.test.js
npx vitest run -c telegram/vitest.config.js telegram/tests/generate.test.js
npx vitest run -c telegram/vitest.config.js telegram/tests/telegram-api.test.js
Gemini live tests:
set RUN_RENDER_REAL_GEMINI=1
npm run test:telegram:gemini-real
Real local URL ingestion e2e (opt-in):
set RUN_RENDER_REAL_GEMINI=1
set RUN_WEBHOOK_URL_REAL=true
npx vitest run -c telegram/vitest.config.js telegram/tests/webhook-url-real.e2e.test.js
Requires valid R2_* env vars.
set RUN_R2_E2E=true
npm run test:telegram:r2-real
Run the lightweight deploy sanity probe manually:
npm run telegram:deploy:sanity
This is executed automatically by npm run bot:deploy:auto unless --skip-sanity is set.
Requires deployed bot URL and Telegram test routing values.
set RUN_FULL_STACK_E2E=true
npm run test:telegram:full-stack
Validated interfaces include:
X(Y) on each panelBackground and Image description (no Story title line)generation.panel_watermark, default on)/consistency on|off) and unsupported models fall back safely/options, dedicated setting commands)/crazyness command updates story invention temperature/objective (no args)Workflow:
.github/workflows/bot-tests.ymlBefore tests run, CI enforces secret checks:
npm run secrets:validate:tests:ci