GetMyBot नॉलेज बेस

Mini App

Open your website inside Telegram from a button and verify who is using it. What GetMyBot supports for Mini Apps.

इस पृष्ठ पर

A Mini App is a website that opens inside Telegram. For example, a customer taps "My orders" and sees an order page without leaving the messenger. You need to build the website separately. GetMyBot helps open it from a message button and verify the user data supplied by Telegram.

Web app button

In the message builder, add a button under the message of type Web app and enter your Mini App's address. Telegram opens the site in a window over the chat. See Messages and buttons for more on buttons.

User verification (initData)

When the app opens, Telegram passes user data and a digital signature, initData. Your app sends these data to GetMyBot, which checks the signature using the bot token and confirms that the data are recent. Only after a successful check should the app use the Telegram ID to access the person's private data.

What to keep in mind

  • GetMyBot currently supports the web app button and initData verification.
  • App data such as orders, history, and leaderboards can be stored in collections and filled by reaction actions. Reading from collections uses the owner's authorized API.

What's next