Starter template for a new TWA interacting with the TON blockchain
This project is part of a set of 3 typical repositories needed for a blockchain dapp running on TON blockchain:
Smart contracts in FunC that are deployed on-chain Web frontend for interacting with the dapp from a web browser (coming soon) Telegram bot for interacting with the dapp from inside Telegram messenger (this repo)
- A react-based TWA-ready app, interacting with TON
- Github actions set to deploy app to github pages
- A script to connect a telegram bot to the deployed app
-
Create a template from this repo with the "Use this template" button
-
Create a new bot with botfather
- Type
/newbot
- Choose a name for your bot, e.g.
My Ton TWA
- Choose a username for your bot, e.g.
my_ton_twa_482765_bot
- Take note of the access token, e.g.
5712441624:AAHmiHvwrrju1F3h29rlVOZLRLnv-B8ZZZ
- Run
./configure_bot.sh [ACCESS_TOKEN] https://[YOUR-GITHUB-USERNAME].github.io/[YOUR-REPO-NAME]/
- Type
-
You're all set! Go to https://t.me/[YOUR-TELEGRAM-BOT-USERNAME] and press the launch button