Create Aptos Dapp Telegram Mini App Boilerplate Template
This template is built from the boilerplate template and make it runnable as a telegram mini app.
See the doc for boilerplate template for details about the template itself.
You can access a live demo of the mini app by starting a chat with the example bot https://t.me/aptos_explict_siging_bot/.
After you have followed the boilerplate template doc instructions to publish the contract and deploy the frontend, you can follow the steps below to make the dapp runnable as a telegram mini app.
Create a telegram bot
Start a chat with BotFather, use the /newbot
command to create a new bot.
Create a telegram mini app
Use the /newapp
commend to create a new mini app and link the mini app with the bot you just created. When BotFather asks for the mini app’s URL, provide the URL of the frontend you deployed.
Set the menu button of the bot to open the mini app
Use the /mybots
command to find your bot, choose bot settings
-> menu button
-> configure menu button
, provide the mini app’s name and URL. Now you can access the mini app from your bot’s menu.