Telegram Bots & Mini-Apps
A user-friendly guide to quickly integrate Telegram Apps
For signing in to Para with Telegram, refer to OAuth Social Logins.
Para supports both Telegram Bots and Mini-Apps.
Telegram Bots are a way to program logic natively into the Telegram App interface via text-based prompts and commands. Telegram Bots feel native to the UX of Telegram, but are limited to the UX and functionality of text-based options and menus.
Telegram Mini-Apps are an easy way to serve hosted web applications from within Telegram. Given Mini-Apps are added functionality to an existing web app, they are much more flexible but have a UX pattern that deviates from the native Telegram experience.
Telegram Bot
The most popular way to use Para in a Telegram Bot is to leverage Pregenerated Wallets with the Server SDK.
You have the option of allowing your users to claim their pregenerated wallets, which can happen directly within Telegram or in a standalone app.
Mini-App
You can build Mini-Apps two ways:
-
Use the Modal with the password option.
-
Use pregenerated wallets with the web SDK in a web framework of your choice. Once you have a web example working, use Telegram CloudStorage to create an interface for getting and setting data, like in this example.
-
You’ll need to decide where and how you want users to claim their pregenerated wallets. This can happen within Telegram Mini-Apps or in a standalone app.
Telegram Storage APIs have some limitations on data size. You may need to implement chunking to work around this. See this reference implementation for more info.