A Telegram BOT that listens to users messages and provides country wise update based on user input. The BOT will also push out update of Bangladesh COVID stats when the data updates for the day.
https://t.me/COVID19_Statsbot
BOT: Python, Flask
Database: PostgreSQL
Hosting: Heroku
- BOT regularly updates COVID statistics from Worldometers and Disease SH.
- Important COVID Statistics available for all countries of the world.
- BOT will send out notification when updated Bangladesh COVID statistics is available.
- BOT uses PostgreSQL solution from Heroku to keep track of which users to send out the notification to.
- Few additional data points are provided for Bangladesh such as
Positivity Rate
andTest Count
.
- For development, make sure to set up either a local .env file with the appropriate information or add the environment variables in the hosting of your choice.
- A BOT needs to be set up through BotFather in Telegram to get your unique BOT token.
To run this project, you will need to add the following environment variables or add it directly to your python script (not recommended!).
TOKEN
- Your Telegram BOT token
HEROKU_URL
- Your Heroku URL here if using Heroku
This BOT depends on scraping data from a website and therefore it is suggested to use it at your own risk. Always check if the website that is going to be scraped on has any guidelines on scraping and ensure very frequent attemps are not made to scrape.
Contributions are always welcome!
Kindly generate a pull request
with your contribution.
If you have any feedback, please reach out to me at [email protected]