<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq" -->

---
title: Nuances of Developing a Business App on Telegram Mini...
description: A developer shares hard-won lessons from vibe-coding GoosleeBot, a Telegram Mini App bridging Telegram chats to Google Meet, Zoom, and other video services....
canonical: https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Nuances of Developing a Business App on Telegram Mini Apps: What I Learned About the Platform | daily.dev
og:description: A developer shares hard-won lessons from vibe-coding GoosleeBot, a Telegram Mini App bridging Telegram chats to Google Meet, Zoom, and other video services....
og:url: https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq
og:image: https://api.daily.dev/og/posts/mmBbGJNwQ.png
og:image:alt: Nuances of Developing a Business App on Telegram Mini Apps: What I Learned About the Platform
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Nuances of Developing a Business App on Telegram Mini Apps: What I Learned About the Platform

**[JavaScript in Plain English](https://daily.dev/sources/jsPlainEnglish)** · 12 min read · 1 upvotes · 0 comments

## Summary

A developer shares hard-won lessons from vibe-coding GoosleeBot, a Telegram Mini App bridging Telegram chats to Google Meet, Zoom, and other video services. The piece lists concrete rules for building on Telegram's non-standard webview: avoid 100vh, window.open, native alerts, and cookie-based auth; treat localStorage as cache only; use Telegram's BackButton; detect platform/mode via a 'whereAmI' helper; pre-calculate redirect URLs since Telegram has no server-side redirects; and set up a tunneling service (ngrok, cloudflared) from day one for fast iteration. It also covers app catalog requirements like multi-language support and theme compliance, and notes that WebSockets (SignalR) work reliably across Telegram clients despite initial skepticism.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://javascript.plainenglish.io/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-6a8f870db127>

## Questions this post answers

### Why shouldn't I use 100vh for viewport height in a Telegram Mini App?

Using 100vh breaks layouts because Telegram's web engine is not a standard browser: on iOS the bottom of the page slides under the bottom panel, and on Android the keyboard compresses the viewport, distorting the layout. Instead, use viewportStableHeight or the tg-viewport-height CSS variable and subscribe to the viewportChanged event to handle resizing correctly.

_Developers debugging Telegram webview layout quirks can find similar platform gotchas curated on daily.dev._

### How do I detect whether my app is running inside a Telegram Mini App versus a regular browser?

Check window.Telegram.WebApp.initData: if it's non-empty, the app is running inside Telegram as a Mini App; if empty, it's opened in a regular browser. Combine this with tg.platform (ios, android, tdesktop, macos, weba) to detect the exact client and branch CSS classes and redirect logic accordingly, since behavior differs across all four environments.

_Teams building cross-platform Telegram bots track detection tricks like this via daily.dev._

### Why can't I rely on cookies or localStorage for authentication and state in a Telegram Mini App?

Telegram's Webview loses cookies unpredictably, causing users to get logged out between sessions, so authentication should use an explicitly passed token in headers or query parameters instead. Similarly, localStorage should be treated only as a cache, not a database, because user state can silently disappear; important data must be stored server-side or in Telegram's CloudStorage.

_Anyone architecting session handling for chat-embedded apps can keep these platform constraints in view via daily.dev._

## Similar posts on daily.dev

- [Windows Phone still refuses to die as someone adds a native Telegram app to the OS](https://daily.dev/posts/windows-phone-still-refuses-to-die-as-someone-adds-a-native-telegram-app-to-the-os-yfuca6i4r) · XDA Developers · 0 upvotes · 0 comments
- [Telegram Serverless](https://daily.dev/posts/telegram-serverless-uej7tlh7t) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#vibe-coding](https://daily.dev/tags/vibe-coding)

[View this post on daily.dev](https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Nuances of Developing a Business App on Telegram Mini Apps: What I Learned About the Platform","url":"https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq"},"datePublished":"2026-09-06T19:34:41.086Z","dateModified":"2026-09-13T20:36:41.717Z","description":"A developer shares hard-won lessons from vibe-coding GoosleeBot, a Telegram Mini App bridging Telegram chats to Google Meet, Zoom, and other video services....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/34f5048e762790ba4eb4b6bd8ffdb27e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/34f5048e762790ba4eb4b6bd8ffdb27e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"JavaScript in Plain English","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"JavaScript in Plain English","logo":"https://media.daily.dev/image/upload/s--Dg5QTRuI--/f_auto,q_auto/v1686665538/logos/pe","url":"https://daily.dev/sources/jsPlainEnglish"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,vibe-coding","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JavaScript in Plain English","item":"https://daily.dev/sources/jsPlainEnglish"},{"@type":"ListItem","position":3,"name":"Nuances of Developing a Business App on Telegram Mini Apps: What I Learned About the Platform"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/nuances-of-developing-a-business-app-on-telegram-mini-apps-what-i-learned-about-the-platform-mmbbgjnwq#faq","mainEntity":[{"@type":"Question","name":"Why shouldn't I use 100vh for viewport height in a Telegram Mini App?","acceptedAnswer":{"@type":"Answer","text":"Using 100vh breaks layouts because Telegram's web engine is not a standard browser: on iOS the bottom of the page slides under the bottom panel, and on Android the keyboard compresses the viewport, distorting the layout. Instead, use viewportStableHeight or the tg-viewport-height CSS variable and subscribe to the viewportChanged event to handle resizing correctly. Developers debugging Telegram webview layout quirks can find similar platform gotchas curated on daily.dev."}},{"@type":"Question","name":"How do I detect whether my app is running inside a Telegram Mini App versus a regular browser?","acceptedAnswer":{"@type":"Answer","text":"Check window.Telegram.WebApp.initData: if it's non-empty, the app is running inside Telegram as a Mini App; if empty, it's opened in a regular browser. Combine this with tg.platform (ios, android, tdesktop, macos, weba) to detect the exact client and branch CSS classes and redirect logic accordingly, since behavior differs across all four environments. Teams building cross-platform Telegram bots track detection tricks like this via daily.dev."}},{"@type":"Question","name":"Why can't I rely on cookies or localStorage for authentication and state in a Telegram Mini App?","acceptedAnswer":{"@type":"Answer","text":"Telegram's Webview loses cookies unpredictably, causing users to get logged out between sessions, so authentication should use an explicitly passed token in headers or query parameters instead. Similarly, localStorage should be treated only as a cache, not a database, because user state can silently disappear; important data must be stored server-side or in Telegram's CloudStorage. Anyone architecting session handling for chat-embedded apps can keep these platform constraints in view via daily.dev."}}]}
```

