Simple working example of Telegram Web Apps.
- Create
.env
file with your bot token. - Run
npm install
- Change
APP_BASE_URL
insideindex.js
to your domain. - Run
npm start
Since it is a basic example, bot will only respond to /demo
or /simple
commands every 3 seconds. If you're working on implementing Web Apps to your bot, your library probably already dealing with all the updates and stuff for you.
Tip: Use localtunnel or ngrok to make local setup available to the Internet.
@asmico for @asmico_attach_bot demo. Parts of https://webappcontent.telegram.org/demo were used in this repo