The short version

Mini Apps get described as the successor to bots. They are not. A Mini App is a web page that stops existing when the sheet is dismissed, so it can never reach a user who closed it — every notification, receipt and reminder still goes through the bot. Real products use both, and the line between them is predictable: messages for anything that is a message, the webview for anything that is a form. The engineering worth paying attention to is at the seam, where Telegram hands your page a signed payload that you must verify on your own server and almost everyone trusts in the browser instead.

“Should we build a Telegram bot or a Mini App?” is the question we are asked, and it contains a false choice. You cannot ship a useful Mini App without a bot, because the bot is how the Mini App is launched and the only way anything reaches the user afterwards.

The useful question is where each part of the workflow lives.

What a Mini App actually is

A Mini App is your web page, hosted by you, opened inside a webview that Telegram presents as a sheet over the chat. Telegram supplies a small JavaScript interface for the theme, the viewport, the main button and a few native-feeling behaviours, and it supplies the user's identity on launch. Everything else is an ordinary web application that you build, host, secure and operate.

That single sentence settles most of the architectural questions people ask. It is not a platform you deploy into. There is no store review, no signing, no binary — which is genuinely valuable, and is most of the appeal — but there is also no runtime, no background execution and no scheduler. The page is alive while it is on screen and gone afterwards.

So anything that has to happen later happens on your server, and reaches the user as a message.

The line the job splits along

After a few of these the split stops being a judgement call. Chat is excellent at short, linear, one-decision exchanges and terrible at anything with state. A webview is the reverse.

Stay in the thread for notifications, approvals, status checks, short commands and anything the user should be able to deal with in two seconds without a page load. Move to the Mini App as soon as there is a list to browse, a filter to apply, more than about three fields to fill, or a selection that needs to be seen all at once — seats, dates, a cart, a map.

The failure mode in both directions is recognisable. A bot that walks you through eleven sequential questions, where correcting the fourth answer means starting again, should have been a Mini App. A Mini App that you must open to find out whether your order shipped should have sent a message.

ONE WORKFLOW, TWO SURFACES THE BOT · MESSAGE LAYER THE MINI APP · WEBVIEW 1 · A message arrives the only way to reach a closed app AT THE SEAM initData, signed with your bot token 2 · The Mini App opens your web page, your hosting 3 · Browse, filter, fill anything past about three fields 4 · Confirm validated on your server, not the page 5 · The receipt is a message so it survives the sheet closing The workflow starts and ends in the thread. Only the middle belongs in the webview.
The bot is not a launcher for the Mini App; it is the part that persists. Anything the user must learn about later — a confirmation, a failure, a reminder — has to leave through the message layer.

The seam, and the mistake nearly everyone makes

When Telegram opens your page it hands it a payload describing the user, together with a hash computed with your bot token. That hash is the whole security model. It is what lets your server believe that the person in front of the page is the Telegram account it claims to be.

The mistake is to read the user identifier in client-side JavaScript and use it. A Mini App is a web page, and a web page served to a user is a web page that user can inspect, modify and replay. Anyone who opens the developer tools can change that number to someone else's.

The correct shape is boring: the page sends the whole payload to your backend once, the backend verifies the hash against the bot token, and from then on the session is yours — your token, your expiry, your authorisation checks. Nothing the client asserts about identity is ever trusted again. Verification also has to consider the age of the payload, or a captured launch can be replayed later.

This is not exotic. It is the same discipline as any other client, and it is worth stating plainly only because the convenience of having user details appear in a global object leads a lot of projects to skip it.

What you inherit from the bot

A Mini App does not escape the platform's rules. It sits on top of them.

The constraints on what a bot is allowed to do still apply, including the rules about initiating contact. If you could not message a user before, launching a Mini App does not change that; the Mini App cannot message anyone at all. Anything scheduled — a reminder, a daily digest, an expiry warning — is your server's job, delivered by the bot, which also means your bot needs a delivery path that survives restarts and deployments. That is the webhook-or-polling decision, and adding a Mini App makes it more consequential rather than less, because now there is a web application whose users expect their confirmations to arrive.

File handling, media size and rate limits are all unchanged. So is the fact that you are building on someone else's distribution: the reason to be here is that your users already are, and the cost is that the platform's rules are not negotiable.

What it is genuinely good for

The case for a Mini App is distribution, and it is a strong one. There is no store listing, no review queue, no signing certificates, no minimum OS version and no update that waits on anyone. A user who receives a message is one tap from a working interface, with no install. For an internal tool, a field-ops workflow, a booking flow or a service that already lives in a group chat, that removes most of the friction that normally stands between an idea and people using it.

What you give up is everything the operating system would have provided. No background work, no local notifications, no reliable offline state, hardware access limited to what the browser allows, and a user who can dismiss the whole thing with a swipe. For a product that needs those, this is the wrong surface and a native or Flutter app is the right one.

A sensible default

  1. Build the bot first. It is the channel, the identity and the delivery mechanism. The Mini App is added to it.
  2. Keep short interactions in the thread. If it is one decision, a message is faster than a page load.
  3. Verify initData server-side, check its age, and issue your own session. Never trust a client-supplied user id.
  4. Put every outcome in a message. Anything the user needs after they close the sheet must leave through the bot.
  5. Treat it as a web application, because it is one: hosting, authorisation, state, logging and a deployment process.

Done that way, the two surfaces stop competing. The thread carries the relationship and the webview carries the work.

Questions we get asked

Does a Mini App replace a Telegram bot?

No, and planning as though it does is the common mistake. A Mini App is a web page that exists only while the user has it open, so it cannot tell anyone anything once it is closed. Every notification, reminder, receipt and status change still goes out through the bot. The Mini App is a richer surface bolted onto a messaging channel, not a replacement for one, and the bot remains the thing that owns the relationship.

When is a Mini App worth building rather than staying in chat?

Roughly when the interaction stops being a message. A short command, a yes-or-no approval, a status check or a notification belongs in the thread, because putting it in a webview adds a tap and a load for no gain. Anything with more than about three inputs, a list to browse and filter, a map, a seat picker or a cart becomes painful as a sequence of chat prompts and should be a Mini App.

How does a Mini App know who the user is?

Telegram passes an initData payload into the page containing the user details and a hash signed with your bot token. The only safe handling is to send that payload to your own server and verify the signature there before trusting any of it. The user identifier read directly in client-side code is an ordinary value in a web page and can be edited by anyone who opens the developer tools, so treating it as identity is the single most common security hole in Mini App projects.

Is a Mini App cheaper than a mobile app?

Cheaper to distribute, not necessarily cheaper to build. You skip both app stores, their review cycles and the signing infrastructure, and updates ship the moment you deploy. But it is still a web application with hosting, authentication, state and a build pipeline, so the engineering is comparable to any other web front end. What you save is the distribution overhead, which is substantial, and what you give up is everything the operating system would have given you.

What can a Mini App not do?

It cannot run in the background, schedule anything, or notify a user who is not looking at it, because it stops existing when the sheet is dismissed. It inherits the browser's limits on hardware access rather than a native app's, and it inherits every platform restriction the bot has, including the rules on who you are allowed to message first. Anything time-based has to live on your server and be delivered by the bot.

Can a Mini App take payments?

Yes, through Telegram's own payment flow invoked from the app, or by sending the user to an external checkout. The choice is usually decided by what your payment provider and your market require rather than by preference, and in regulated contexts the external route is often the only acceptable one. Either way the confirmation should arrive as a bot message, because that is the only part of the exchange that survives the user closing the sheet.

Related service Telegram bot development Bots and Mini Apps, built properly

If you are weighing the two, the honest answer is usually that you need a bot and may also need a Mini App. We build both, and the part worth getting right at the start is the seam between them.