Giter Site home page Giter Site logo

cowin-slot-availability-telegram-bot's Introduction

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

cowin-slot-availability-telegram-bot's People

Contributors

abhijithasokan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.