Telegram Web App bot example.
Bot consists of two parts:
- webapp-backend
- webapp-frontend
Built with pyTelegramBotAPI and peewee orm
- Execute in
database
directory to create sqlite file to work with peewee:
python3 create_database.py
- Set telegram bot key in
config/config.ini
- Edit products price in
config/products.yml
- Run bot using
python3 bot.py
Note that bot use infinity_polling so need to started i background. Use tools like Monit for control bot script.
Simpe interface built with react and react-bootstrap
- Set products data in
src/catalog/state.js
- Run
npm start
for test npm run build
for build