Scraper and telegram bot for http://tgnvoda.ru/avarii.php.
You can use this project as a template for your own updates channel. In order to do so, you should
- Fork the repo
- Create scraper script using
getWaterInfo.jsas example - Replace
getWaterInfoin.github/workflows/runner.yml - Create your bot by chatting to BotFather and setup
TOKENsecret (github.com/user/repo/settings/secrets/actions) - Create channel and setup
CHANNELsecret - Add bot to the channel as admin
- Get chat id for error reporting:
- Write to your bot
- Run
npm run chat_id - Set
ADMIN_CHAT_IDsecret (you can use it for debugging instead ofCHANNEL)
- Create credentials for docker hub here.
- Set
DOCKERHUB_TOKENandDOCKERHUB_USERNAMEsecrets.