Skip to content

To get slot availability notification for below 45 age group

Notifications You must be signed in to change notification settings

abhijeetgaonkar/VaccineTrackerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cowin Vaccine Tracker Bot

Overview

This is the Cowin vaccine tracker graphql server + Telegram bot. It is a nodejs Apollo server for deployment in a container.

Pre-requisites to get vaccine slot availability details on telegram application

  • Telegram application
  • Typescript/Nodejs

Setting up Telegram Bot

Few changes that you need to make in the code to start using your own bot.

  • You need to get authorization token from @BotFather and replace your code in src/clients/telegram.ts file.
  • Get district code for your district from cowin website cowin and replace it in src/services/center.ts file.
  • Update your docker hub username under docker-build in package.json file. (For pushing image into docker hub)

Run Locally as a Container

To build and run this in a docker container:

npm install
npm run build
npm run docker-build
npm run docker-run

Point your browser to localhost:5001/graphql to use the GraphiQL query interface.

Run Locally

To run this locally

npm install
npm start

Example Graphql Queries

query getCenterDetails {
  centers {
    centerIdentifier
    name 
    sessions {
      id
      date
      availableCapacity
      ageLimit
      vaccineName
    }
    feeType
  }
}
mutation sendMessageToBot {
  sendMessage {
    message
    status
  }
}

About

To get slot availability notification for below 45 age group

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published