End-to-end testing for Telegram bots: Kane CLI runs plain-English flows in real Telegram Web, and Claude Code fixes the bot until they pass.
Your bot works on your laptop. BotProof proves it works in Telegram. Telegram bots are tested by hand: send /start, tap buttons, repeat after every change. Unit tests mock the Bot API, so they never see what a user sees. BotProof is for Telegram bot developers. You write one plain-English Kane flow per user journey. Kane CLI is the only thing that touches Telegram: BotProof starts Chrome with a dedicated test account logged into Telegram Web, attaches Kane over CDP, runs kane-cli testmd run per flow, reads the NDJSON events and exit code, and reports PASS/FAIL with the evidence pack. Kane checks what a user really sees: commands and deep links, inline keyboards editing in place, callback alerts, conversations, formatting, photos, a Mini App with Telegram's Pay button, inline mode, groups and channels. The demo bot, Brew Bot (@botproofbot), exercises all of it. Results: 18 of 22 flows pass live, with 25 replayable evidence packs, and Kane caught a real bug that mocks never would: the bot told the group's own owner "Only group admins" when they posted as an anonymous admin. Install: npx botproof init (on npm, CI green).
Closed loop: when a flow fails, botproof fix hands Claude Code the failing step, Kane's remark, the failure record and screenshot. Claude may only edit bot code (PreToolUse hook + git-snapshot revert). BotProof redeploys, Kane re-runs; max 3 attempts, then a human. Every attempt and diff is logged. Real run (botproof/runs/fix-2026-11-22T18-25-38/LOG.md): Kane failed group_close_admin, Claude changed one condition, Vercel redeploy, Kane passed in 185 s. Fix commit 80593e8. When Telegram itself got in the way, Kane's triage blamed the automation and BotProof did not patch the bot. Run it: npm i -g @testmuai/kane-cli, kane-cli login, then in your bot's repo: npx botproof init, npx botproof run start, npx botproof fix start. Evidence packs (replay without logging in): https://github.com/ahmardchain/Botproof/releases/tag/evidence-packs. Next: 3 flows that fail on Kane-side issues (reply keyboard, stale button, channel comments), re-running remove/re-add (cut short by low memory), live footage in run --record videos, a second test account, parallel runs, live runs on a self-hosted CI runner.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →