Telegram Test Advanced

Escape hatch when declarative BotSpec JSON runs out of road. Covers mocking external dependencies (DB / HTTP / payments), simulating Telegram API failures (429 rate limit, blocked user, message-not-modified), and writing raw handleUpdate tests with direct assertions. Assumes the tokenless harness model from telegram-test-specs. USE FOR: mock bot dependencies, test error paths, rate limit test, blocked user test, programmatic bot test, handleUpdate test, simulate api failure, payment test, vitest, vitest + grammy, mocked DB, mocked HTTP, edge-case Update fixtures — even if the user doesn't say "vitest" or "mock" explicitly. DO NOT USE FOR: declarative BotSpec JSON dialog tests (see telegram-test-specs — programmatic tests do NOT count toward the command-coverage gate). Triggers: mock bot dependencies, test error paths, rate limit test, blocked user test, programmatic bot test, handleUpdate test, simulate api failure, payment test, vitest, vitest + grammy, mocked DB, mocked HTTP, edge-case Update fixtures.

agntdev 07af7eb 14.2 KB Updated

File contents

agntdev/skills/tree/main/skills/telegram-test-advanced commit 07af7eb3ff

Frequently asked questions

npx skillmds@latest add agntdev/telegram-test-advanced