Mini App Tester lets you test the Telegram WebApp JavaScript API (Telegram.WebApp) without writing code. In a normal browser it runs in mock mode and emulates the API; opened inside Telegram, it talks to the real API of the current client. Use it to test a Telegram Mini App feature before you build it, or to see how a particular client behaves.
Telegram.WebApp.https://telegram-bot-api.info/telegram-mini-app-tester.html as the Mini App URL of a bot in @BotFather (/newapp or the menu button settings). No hosting is needed.version, platform, colorScheme, initData, themeParams and the safe areas.ready, expand, close, header and background colors.showPopup, showAlert, showConfirm and the QR scanner.openInvoice, shareToStory, emoji status, fullscreen and downloadFile.The event log records 45+ events with timestamps, such as themeChanged, viewportChanged, mainButtonClicked and fullscreenChanged, so you can see exactly what your handlers will receive.
Mini Apps were originally called Web Apps, which is why the API object is still named Telegram.WebApp. Mock mode is for UI and flow: it shows which calls exist, what they return and which events fire, and it emulates storage in localStorage. It can't reproduce native popups, haptics or real user data, and its initData is a sample that Telegram never signed. Inside Telegram the tester switches to the real API, so initData is genuine and every call reaches the actual client. How to validate that data on your server is shown in how to test a Telegram Mini App.
The tester runs entirely in your browser, needs no bot token and doesn't call the Bot API. Mock storage stays in your browser's localStorage.
New to Mini Apps? Start with how to create a Telegram bot and get its token. The Bot API 10.2 origin protection for Mini Apps is covered in what's new in Bot API 10. To point a menu button at your Mini App via the API, call setChatMenuButton in the Bot API Tester, and look up any method in Swagger or the methods reference.
Open the Mini App Tester in any browser. Its mock mode emulates Telegram.WebApp, so you can call methods, trigger events and inspect properties without a bot or a Telegram client.
Yes. Set https://telegram-bot-api.info/telegram-mini-app-tester.html as the Mini App URL in @BotFather, via /newapp or the menu button settings. Inside Telegram it uses the real WebApp API, and you don't need any hosting.
WebApp core methods, MainButton, SecondaryButton, BackButton and SettingsButton, popups, HapticFeedback, CloudStorage, DeviceStorage, SecureStorage, sensors, biometrics, location, permissions, invoices and stories, emoji status, fullscreen and file downloads, plus a log of 45+ events.
No. Mock mode uses sample data that Telegram never signed, so it fails HMAC validation by design. Open the tester inside Telegram to get real initData for testing your server-side validation.
No. The page doesn't call the Bot API at all. You only need a bot if you want to open the tester inside Telegram as a Mini App.