- This script only checks available vaccination appointments for https://impfterminservice.de and sends a telegram message if appointments are available.
- You have to book the appointment manually.
- Mediation code needed.
- Get mediation code with multiple attempts and waiting time from https://impfterminservice.de (mediation codes are only available if free vaccination events are available) or
- Intercept and modify https network traffic for your vaccination centre urls to get code directly:
- GET
https://[vaccinationCentreGroup e.g. 001-iz].impfterminservice.de/rest/suche/termincheck
: change response from to{"termineVorhanden":true,"vorhandeneLeistungsmerkmale":["L920", "L921"]}
and - POST
https://[vaccinationCentreGroup e.g. 001-iz].impfterminservice.de/rest/suche/termincheck/alter
: change response to{"einzeltermineVorhanden": false, "terminpaareVorhanden": true}
and set HTTP status code 200
- GET
https://001-iz.impfterminservice.de/assets/static/its/vaccination-list.json
- L920 BioNTech
- L921 Moderna
- L922 AstraZeneca
- L923 Johnson&Johnson
- Install node
- Checkout and run
npm install
- copy and rename
config.example.json
toconfig.json
- fill accessCodeObjects with your data
- if you want to set a time range for available events, use
event_not_before
andevent_not_after
(ignored if not set or invalid) - Create telegram bot with Botfather (
/newbot
) - save token as
telegram_token
toconfig.json
- find out your chat id with IDBot (
/getid
) - save your telegram chat id to
telegram_chatIds
toconfig.json
(or use a telegram group and save chat id totelegram_group_chatIds
) - send a test message from your telegram account to the newly created bot
- script will send you a test message after every start
- Create Telegram group
- Add your bot to group
- Adjust the following settings for your bot with BotFather
- /setprivacy - disabled
- /setjoingroups - enabled
- Get the group chat id (e.g. from the JSON of https://api.telegram.org/bot/getUpdates)
npm start