This is a simple Telegram bot which checks exact page and notifies when something changed.
- Clone this repository.
- Replace
YOUR_BOT_TOKEN
with your Telegram bot token. You can obtain this token by creating a new bot through the BotFather on Telegram. For more information, visit https://core.telegram.org/bots#botfather. - Replace
YOUR_CHAT_ID
with the desired chat ID where the bot should send messages. You can obtain the chat ID by sending a message to your bot and checking the chat.id property in the update received by the bot. or Navigate to https://api.telegram.org/bot[YOUR_BOT_TOKEN]/getUpdates and check the chat.id property in the update received by the bot. - Run the application using the command
npm run dev
. - Send a message to your bot and check if it responds
- Send a message to your bot with the following format:
/monitor [URL] [CRON_EXPRESSION]
- Send
/list
to get list of available URLs - Send
/stop [URL]
to stop monitoring of the URL
On ubuntu you will probably need to install some dependencies (tested on ubuntu 20.04)):
sudo apt-get install libcairo2 libpango-1.0-0 libxkbcommon-x11-0 libgbm-dev libxrandr2 libxfixes3 libxdamage1 libxcomposite1 libcups2 libatk-bridge2.0-0