Skip to content

A telegram bot that notifies you about COVID-19 statistics.

Notifications You must be signed in to change notification settings

memreyagci/covid-19-telegram-bot

Repository files navigation

COVID-19 Worldwide Statistics Bot for Telegram

Markdown Logo

A Telegram Bot that sends you notifications of subscribed countries' COVID statics.

Statistics are fetched from disease.sh


What can this bot do?:

  • Sending notifications when a subscribed country has new statistics.
  • Getting statistics of a country with /get command

Installation:

* Using Docker:

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

* Normal installation:

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