Skip to content

A bot that helps you find vaccination appointments in your area (India).

Notifications You must be signed in to change notification settings

abhijithasokan/cowin-slot-availability-telegram-bot

Repository files navigation

CoWin Vaccine notifier (Telegram Bot)

During the peak vaccine demand in India, vaccine slots were hard to book as slots got filled like on a black Friday sale. We worked on making the process of finding vaccines a lot easier.

The solution had to solve few main problems

  1. Users should be able to receive updates when the vaccine is available in their area, thus avoiding the need to constantly log in to CoWin portal.
  2. Users should also get details like vaccine type, which dose is administered and what date the vaccination drive is scheduled.

To make the solution widely available, a telegram bot seemed the most suitable choice.

The bot was build using the official telegram bot framework. The server side of the bot queried the official CoWin (India's centralized online platform to book vaccine appointments) API periodically and sends the updates to users.

The bot was initially built to serve family and close friends but soon became available to a wider audience.

Stats (on 31st Dec 2021 @ 21:37)

Users at peak 1733
Pincodes served 581
Broadcasts updates sent so far 1.96 M (1,961,394)

Screenshots

Getting Info from user User getting updates

How to run?

  1. Install required packages (see requirement.txt for complete list)
  2. Generate token for bot with the help from BotFather
  3. Provide DB credential via JSON file
    {
     "DB_SETTINGS" : {
        "host" : "<db-host-address>",
        "name" : "<db-name>",
        "username" : "<db-username>",
        "password" : "<db-pass>"
        }
    }
  4. Provide Bot Token key and DB credentials via environment variables
    • Bot token - COWIN_TEL_BOT_KEY
    • DB credentials (path to config in JSON format) - DB_INFO_FILE

About

A bot that helps you find vaccination appointments in your area (India).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages