Telegram WebApp Integration

Secure authentication and native Telegram WebApp features

Loading Telegram WebApp...
Detecting Telegram environment...
Environment Info
In Telegram:No
Theme:light
Auth Status:loading
How to Use

For Development:

  • • Open this app in a regular browser to see the "Not in Telegram" state
  • • The app automatically detects the Telegram WebApp environment
  • • Mock data is used for testing outside of Telegram

For Production:

  • • Create a Telegram bot using @BotFather
  • • Set the Web App URL to your deployed application
  • • Configure TELEGRAM_LOGIN_BOT_TOKEN in environment variables
  • • Users can access the app through the bot's menu button

Authentication Flow:

  • • User opens the WebApp from Telegram
  • • initData is automatically validated on the server
  • • User account is created/linked in the database
  • • NextAuth session is established with Hasura claims