The app as a site: signing in, search, installing

One app opens both in a messenger and from a link in a browser — with the same person inside.

Where: The Publish dialog → the Publish tab → How the app looks outside the messenger → In a plain browser. It used to live in Project styles, which now links here.

Pick “A site for everyone” and the link opens in any browser.
Pick “A site for everyone” and the link opens in any browser.

A mini app is built around having a messenger nearby: that is where the signed-in visitor comes from, where the theme comes from, and where a lead notification goes. So a browser gets a “works in a messenger” page by default. Picking A site for everyone removes it: the app opens for anybody — from a link, from search, from a computer.

Who opened the app in a browser it learns after a sign-in. The visitor sees six digits and confirms them in this same app inside Telegram or MAX, where they are already known. After that the browser holds the same person: their orders, their rows, their paid lessons. No SMS, no password: the proof already exists in the messenger, and we carry it across.

If Telegram says “App not found”, check the short name: it must be registered for this bot in BotFather, not simply match the publication address. The sign-in screen also offers Open the bot’s main app. This passes the confirmation request through the Main Mini App configured in BotFather, which must point to this same project. Enter the code in the field inside the mini app; do not send it as a chat message to the bot.

A domain link opened from a Telegram or MAX chat may use the ordinary in-app browser, which does not provide the messenger’s signed identity. An existing member needs to confirm sign-in once for that browser using the same messenger account. This opens their existing profile; no new registration form is needed. The session lasts 30 days and renews with use. Another browser, clearing site data or signing out requires confirmation again.

Logic → Confirm computer sign-in. The visitor enters the code on a protected screen inside the messenger; links and placeholders cannot supply it.
Logic → Confirm computer sign-in. The visitor enters the code on a protected screen inside the messenger; links and placeholders cannot supply it.

What everybody sees and what only signed-in people see is the block’s access rule — the Logic tab, “Who can see it”. The value Only people who signed in hides the content from anybody the app does not recognise: no addresses are left in the app document or in the page source. Leave the storefront, the prices and the descriptions open — they are read by the search engine and by the person still deciding.

Sometimes the site is for your own people only — an organisers’ dashboard that is easier to use on a computer, say, while visitors are fine with the messenger. Then pick A site for signed-in people only and, below it, who gets in: Everyone who signed in or Admins only (you, invited editors and table admins). A guest sees the sign-in page or a screen of yours, chosen under “What a guest sees”; put a button with the Sign in (on the site) action on your screen, or the guest will have no way in. Under Admins only, a signed-in person without a role sees “No access” and a Sign out button. In Telegram and MAX the app stays open to everyone, and search engines are not shown such a site.

The sign-in and sign-out buttons are yours to place: the block actions include Sign in (on the site) and Sign out (on the site). The display condition “Visitor is signed in” shows the right one of the two. In a messenger both stay silent — the person is known there anyway.

Search and links the app gets by itself. Every screen gains its own address — /schedule, /about — with its own title and description, so somebody arriving from search lands on the right screen rather than the home one. The title is the screen name; the description is the first sentence on the screen longer than thirty characters, or, if there is none, the screen and app names. To control the description, put a paragraph with a sentence about the screen on it. A link sent to a chat unfolds with a picture and a description: the picture is the app picture or, if there is none, the first photo on the screen. A sitemap and robots.txt appear alongside. Closed content never reaches search.

Search engines get not a flat text but the structure of the page: headings with their levels, paragraphs, images with their descriptions and links from screen to screen. That is how Yandex and Google tell what a screen is about and where it leads. Two tips follow: name your sections with a Heading block rather than a large paragraph, and fill in the Alt text of your images — it doubles as the caption for search. The structure is refreshed on publishing: after edits, publish the app again.

On a phone such an app installs like any other: the browser offers “Add to home screen”, and after that it opens from an icon — without an address bar, and without a connection if there is none. The icon is the app picture (Publish → How the app looks outside the messenger), the colours come from Project styles. Without a picture the icon is the first letter of the name.

To install a shortcut, open the domain in your phone’s browser. In Chrome on Android, choose ⋮ → Add to home screen → Install. In Safari on iPhone, choose Share → Add to Home Screen. Open the installed icon and confirm sign-in through Telegram or MAX once if prompted. Then keep using that icon: messenger browsers and the installed app may store sessions separately. The shortcut itself does not supply a messenger identity.

Read next