A Telegram Bot that sends you notifications of subscribed countries' COVID statics.
Statistics are fetched from disease.sh
- Sending notifications when a subscribed country has new statistics.
- Getting statistics of a country with /get command
Edit the below command with the necessary environmental variables and run:
docker run \
-d --name cov19_tbot \
--env CVBOT_API= \
--env MYSQL_HOST= \
--env MYSQL_DB= \
--env MYSQL_USER= \
--env MYSQL_PASSWORD= \
meyagci/covid-19-telegram-bot
Clone the repo to desired location:
git clone https://github.com/memreyagci/covid-19-telegram-bot
Install the requirements:
pip install -r requirements.txt
Set the following environmental variables:
export \
CVBOT_API= \ #The API retrieved from BotFather
MYSQL_HOST= \
MYSQL_DB= \
MYSQL_USER= \
MYSQL_PASSWORD= \
Finally, run the bot.py file:
python bot.py