A simple site designed for mobile devices. And used as a web view for a telegram bot.
You can use it as a template for your bot.
First use yarn install
for installing dependencies.
Then for start hot reload session use yarn start
.
For build use yarn build
.
If you want play with component use yarn storybook
.
Note
The application does not use a backend, all products discriptions are located statically in the file src/stories/catalog/data.tsx
and product images in folder src/stories/catalog/assets
.
- First, host your site. For testing purposes, I use netlify.
- Create telegram bot.
This is done in a special bot - botfather.
Open botfather, input command/newbot
end follow instruction. - Now, when we have new bot, let's set
web view
.
Click/mybots
and select your bot. Now clickBot Settings
. And next clickMenu button
. So, now just input title and url. - Congratulations, you have added a webview to your bot. 🎉