This repository contains the Python (v3.7) code for the Karnataka COVID19 Counts Telegram bot.
- Search for the bot in Telegram using either Karnataka COVID 19 Counts or @KarCovid19Bot
- Click START to begin conversing with the bot
- To retrieve the latest COVID 19 stats for Karnataka, send either
/karcovid
or/karcorona
/start
- To start interacting with the bot and get a welcome message/karcovid
- Retrieve the state and district-wise stats/karcorona
- Retrieve the state and district-wise stats
- Clone the current repository -
git clone https://github.com/AbhishekPednekar84/covid19-kar-bot
- Create a virtual environment -
python -m venv venv
- Activate the virtual environment -
venv\Scripts\activate.bat
(Windows),source venv/bin/activate
(OSx / Linux) - Install the project dependencies -
pip install -r requirements.txt
- Create a
.env
file and add an environment variable calledTELEGRAM_TOKEN
(refer to.env.example
) - Run the code -
python bot/server.py
orpython3 bot/server.py
- To run the tests -
pytest