/vaccine-availability-telegram-notifier

Python script (now a service) to notify the user about the availability of vaccine registration slots in the specified area!

Primary LanguagePython

Vaccine Availability Telegram Notifier

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!

Check it out!

Project Overview

  • 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.

Script Setup

You can also run the local script with your own configurations.

Clone this Repository

git clone https://github.com/arnavkohli/vaccine-availability-telegram-notifier.git

Navigate to the cloned directory & install the dependencies

pip install -r requirements.txt

Update environment variables

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>

Run the script

python script.py --pincodes 244413 627401

Testing

Set environment variables

Following variables are expected to be set in the environment before running the tests.

TELEGRAM_BOT_KEY
TELEGRAM_CHAT_ID