Send a notification to a telegram group when one of the data feeds is outdated.
-
Create a bot talking with BotFather Telegram bot.
-
Add the bot to de channel where you want to use the bot.
-
Create a
.envfile with the following variables.ℹ️ If you don't know where to find the CHANNEL_ID: You can find it at the end of the URL when you open your channel using Telegram web
TOKEN_BOT_TESTNET=telegram_bot_token TOKEN_BOT_MAINNET=telegram_bot_token CHANNEL_ID_TESTNET=telegram_channel_id CHANNEL_ID_MAINNET=telegram_channel_id POLLING_INTERVAL=300000 FEED_EXPLORER_API=https://feeds-api.witnet.io
-
The bot can be built and run using docker.
$ docker build -t data-feed-status-bot . $ docker run --env-file=./.env -it data-feed-status-bot