Telegram Bot API Toolkit
Three HTML files for testing, documenting, and debugging Telegram bots and Mini Apps — no server, no build, no dependencies. Available at telegram-bot-api.info, just open in a browser.
How to start
Step-by-step instructions for each tool
- Open
telegram-bot-api-tester.htmlin your browser - Get a bot token from
@BotFatheron Telegram - Paste the token in the top field — it saves automatically
- Select an API method from the list or search, fill in the parameters
- Click "Execute" or press
Ctrl+Enter - To receive updates, click "Start" in the Updates panel
- Open
telegram-bot-api-swagger.htmlin your browser - Click the
Authorizebutton and enter your bot token - Select a method from the categorized list
- Click
Try it out, fill in parameters andExecute
- Open
telegram-mini-app-tester.htmlin your browser — Mock mode activates - For real testing: create a Mini App via
@BotFatherwith the/newappcommand - Set the URL to:
https://telegram-bot-api.info/telegram-mini-app-tester.html - Open the Mini App via
https://t.me/yourbot/appname - The interface automatically adapts to the Telegram user's theme
Requirements
Minimum to get started
123456:ABC-DEF...Telegram bot guides
Step-by-step guides with copy-paste curl, Python and JavaScript: create a bot, get its token and chat id, set up a webhook, send messages and stay within the limits.
Getting started with Telegram bots
What is the Telegram Bot API?
An HTTP-based interface for building Telegram bots. Your code calls methods such as sendMessage on api.telegram.org, with the bot token in the URL, and receives incoming messages as JSON updates via getUpdates or a webhook.
Do I need a server to run a Telegram bot?
Not to get started: long polling with getUpdates works from any computer, even behind NAT. A bot that should always be available needs something that runs continuously, such as a VPS, a container or a serverless function, and webhooks also need a public HTTPS URL.
What is the difference between the Bot API and the Telegram API?
The Bot API is a simple HTTPS and JSON interface for bot accounts. The Telegram API (MTProto) is the protocol behind the Telegram apps and is used to build custom clients that log in as users with an api_id and api_hash. Most bots only need the Bot API.
Can a Telegram bot read all messages in a group?
Not by default. In privacy mode, which is on for new bots, a bot sees only commands meant for it, replies to its messages and service messages. Make the bot an administrator, or turn privacy mode off with /setprivacy in @BotFather and re-add the bot to the group.
Is telegram-bot-api.info an official Telegram website?
No. It is an independent project, not affiliated with Telegram. The tools call the public Bot API directly from your browser, and the authoritative reference is the official documentation at core.telegram.org/bots/api.
Other languages
فارسی · 简体中文 · Türkçe · Español · Português (Brasil) · Tiếng Việt · Bahasa Indonesia · 한국어