The project is meant to notify the telegram channel if the slot is available. One can control the time delay between the lookups using env params.
- Install node
- Then run npm install
- telegram_api_key: This is the API key which you will when you create new Bot using bot father
- invoke_call_after_minute: Time is minute after which the application will repeat the process
- telegram_error_channel: Telegram channel id at which the error message will be send.
- single_run: If 1 then code will execute only once else it will execute after every invoke_call_after_minute
- enable_log: logs the time when the api is called
node app.js --district_id 670 --vaccine COVAXIN/COVISHIELD/BOTH --age 30 --telegram_channel_id my_channel_id
- district_id
- telegram_channel_id
-
district_id: One can get it by making API call to covaxin API's First need to call state API: https://cdn-api.co-vin.in/api/v2/admin/location/states Then you need to call : https://cdn-api.co-vin.in/api/v2/admin/location/districts/<state_id>, where state_id can be fetched from the above API Finally note the id of the district for which one need to monitor
-
vaccine: This is for the preferance of vaccine type. It has 3 values: BOTH COVISHIELD COVAXIN
Default is BOTH
-
age: Age for which the slot should be find. You can give any age between 18 and 45 to get notification for this age group similary between 45 and 60 for 45+ and above 60 for 60+
By default it will search for all age group
-
telegram_channel_id: Channel id of the telegram on which notifications will be send
- Create bot using botfather
- Create channel on telegram
- Add the newly created bot as the admin of channel
After creating bot you will get the API Key for the bot Also, suppose link of the channel is https://t.me/vip_bgpt_vaccine_notifier than vip_bgpt_vaccine_notifier is the telegram_channel_id
- Adding state and city in params
- Simple UI for faster search
Feel free to make contributions and add any issues.