With the initiation of the COVID vaccination drive across India for all individuals above the age of 18, I wrote a telegram bot which alerts the user regarding open slots in the vicinity!
- svc - Registration API
- telegram_bot - Telegram Bot code.
- lambda_function.py - Scheduler code for the AWS Lambda function.
- script.py - Script to run the notifier once.
You can also run the local script with your own configurations.
git clone https://github.com/arnavkohli/vaccine-availability-telegram-notifier.git
pip install -r requirements.txt
Open the file .env and replace the dummy values with a legitimate Telegram Bot Key and a Telegram Chat ID.
TELEGRAM_BOT_KEY=<TELEGRAM_BOT_KEY_HERE>
TELEGRAM_CHAT_ID=<TELEGRAM_CHAT_ID_HERE>
python script.py --pincodes 244413 627401
Following variables are expected to be set in the environment before running the tests.
TELEGRAM_BOT_KEY
TELEGRAM_CHAT_ID