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.js
as example - Replace
getWaterInfo
in.github/workflows/runner.yml
- Create your bot by chatting to BotFather and setup
TOKEN
secret (github.com/user/repo/settings/secrets/actions) - Create channel and setup
CHANNEL
secret - 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_ID
secret (you can use it for debugging instead ofCHANNEL
)
- Create credentials for docker hub here.
- Set
DOCKERHUB_TOKEN
andDOCKERHUB_USERNAME
secrets.