Telegram Dev is designed to help Telegram bots and AI coding agents keep up with Bot API updates. Telegram updates the Bot API every month or two, so code and model knowledge can easily fall behind. The project consists of three parts.
-
telegram-dev check: statically checks Bot API calls in Python bot projects. It supports aiogram, python-telegram-bot, pyTelegramBotAPI, and raw HTTP requests made directly to api.telegram.org. A single run lists all discovered issues: errors include parameter values outside the documented allowed range (for example, the style of InlineKeyboardButton must be one of danger, success, or primary), as well as unknown methods or parameters in raw API requests; warnings include parameters deprecated by Telegram (with version and changelog entry), keyword arguments that are neither Bot API parameters nor known library options, and bot methods with no corresponding Bot API. The tool only reads code and does not execute it, so it does not trace variables or check required parameters. It supports options such as --json, --exclude, --strict, and --format github. It can run in the terminal, in CI (GitHub Action), or as an agent tool (check_telegram_project, local stdio server only).
-
Bot API tools for agents: built from the official API pages and changelog, providing method and type definitions, a request checker, and a changelog organized by version. For example, check_bot_api_call can check a call and return errors or warnings. These tools do not actually call Telegram, so permissions, chat state, and file contents still require real testing.
-
Documentation server and skill: provides search capabilities for official Telegram and TON documentation for Claude Code, Codex, and Cursor, covering Bot API, Mini Apps, MTProto, TDLib, bot libraries, TON Connect, Tolk, etc. Documentation refreshes automatically: pages older than 6 hours are re-fetched when read, and searchWill re-fetch at most 6 stale matching pages; during server runtime, checks up to 120 pages in the background every 6 hours; a daily GitHub Action checks all 61 official sources and publishes hashes and errors. If the Telegram site is unreachable, the cached text is retained and marked as stale.
Usage: run the install command in the project directory (requires uv); the installer preserves other settings, backs up changed files, and does not overwrite existing configuration. Then open a new agent session and approve the project MCP server. You can also use the Claude Code plugin (choose one of the two with the installer), or configure only the MCP server for use by other clients. The upgrade command is uvx telegram-dev@latest install --agent claude --update.
Use cases: developers who need to ensure bot code uses the current Bot API; AI coding agents that cannot browse the web; team-shared documentation cache (supports Streamable HTTP, Dockerfile, and Caddy HTTPS deployment).
Limitations: search is local full-text search (SQLite FTS5), not semantic search; exact method names and English terms work best, with a small number of built-in Russian aliases. Coverage is limited to pages reachable from the 61 official entry points. The bot library index includes about 250 pages for aiogram, python-telegram-bot, and grammY; Telegraf, Telethon, and Pyrogram are not indexed. The server does not log in to Telegram, send messages, touch chats, or hold wallet keys; it only reads public pages. The skill improves agent performance but does not guarantee correct answers; code should still be verified against Telegram before release. The code and skill are MIT licensed, the copyright of the fetched documentation belongs to its original owners, and the project is not affiliated with Telegram or the TON Foundation.