This bot allows user to set up one or several jobs that will periodically check for appointments of a specified type at a specified IND location (migration authority of the Netherlands). It was inspired by https://github.com/Iaotle/IND-Appointment-Check.
/add
- Add a new job to watch for an appointment./cancel
- Cancel the current dialogue./list
- List all current jobs./clear
- Remove all current jobs from the queue./help
- Display help message.
Currently the bot is running as @IndAppointmentCheckerBot
. It can be
self-hosted after creating your own bot with @BotFather
(see
https://core.telegram.org/bots) in one of the following ways:
pip install -r requirements.txt
- Set up your bot token as
TELEGRAM_BOT_TOKEN
environment variable. python bot.py
- Create your Heroku app:
or add a Heroku remote for an existing app:
heroku create
heroku git:remote -a <your-existing-app>
- Set up your bot token as
TELEGRAM_BOT_TOKEN
environment variable on Heroku:heroku config:set TELEGRAM_BOT_TOKEN=<your token>
- Activate Heroku Dyno Metadata API:
or set up
heroku labs:enable runtime-dyno-metadata
HEROKU_APP_NAME
environment variable. - Deploy the code:
git push heroku main
- The bot will prevent (free-tier) dynos from sleeping by pinging itself
periodically if any job is running. This may exhaust your free hours limit
if jobs are running for too long. This can be disabled by passing
--no-keep-awake
flag to the bot by changing theProcfile
.