This is a telegram bot to automate routine tasks of my collegues from Emanuel Institute of Biochemical Physics (IBCP RAS).
The bot is written using python-telegram-bot and Flask python webframework. It is structured for better developing experience and can be used as a template:
- .env file
- different Developmend and Production confs
- webhooks on Production, polling on Dev!
git clone https://github.com/rguliev/ibcp-scripts-tg-bot.gitcd ibcp-scripts-tg-botmkdir tmp downloads processed_files- add required folderspipenv install- install required packagescp .env.example .env+vim .env- set your envpython manage.py db migrate+python manage.py db upgrade- migrate database- DEV:
python app.py- this will start bot in polling mode - PROD: Open
https://host/setwebhookin browser and make sure that webhook works