Telegram bot to notify me about new Web Security Academy labs
Run is the screen, or modify the script to use cron
$ screen -S web-security-notify
$ python web-security-notify.py
$ Ctrl-a + d
Change ID of the last Web Security Academy topic
# last_category_id = 19
Change schedule interval
# schedule.every(10).seconds.do(check_new_categories)
# schedule.every(10).minutes.do(check_new_categories)
# schedule.every().hour.do(check_new_categories)
$ pip3 install -r requirements.txt
- On Telegram, contact @BotFather, send him a "/start" message
- Send another "/newbot" message, then follow the instructions
- Replace "telegram_token" with your API token
- Add your newly created bot to friends
- On Telegram, contact @userinfobot, send him a "/start" message
- Replace "telegram_chat_id" with your ID