Steps to have the Telegram Mini App (TMA) + Bot running
- Create a Bot on Telegram using Botfather, link to tutorial
- Clone this repo, run
cp .env.sample .envand use your own Dynamic environment ID by replacingNEXT_PUBLIC_DYNAMIC_ENV_IDin the.envfile - Deploy your website online. link to tutorial
- Using Botfather, add the website url that should be opened for your TMA. link to tutorial
- Use Bot
TOKENfrom Telegram and your website url as LOGIN_URL in the.envfile. - Run telegram bot
ts-node scripts/bot.ts. If you do not havets-nodeyou can install it by runningnpm -g i ts-node - Go to your Telegram Bot and type
/start