https://github.com/zv3/telegram-uptime-bot
AWS Lambda function to monitor a website's availability and alert a Telegram group channel when an outage is detected.
https://github.com/zv3/telegram-uptime-bot
lambda-functions telegram-bot uptime-monitor
Last synced: about 1 year ago
JSON representation
AWS Lambda function to monitor a website's availability and alert a Telegram group channel when an outage is detected.
- Host: GitHub
- URL: https://github.com/zv3/telegram-uptime-bot
- Owner: zv3
- License: apache-2.0
- Created: 2020-02-02T00:02:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:48:00.000Z (over 3 years ago)
- Last Synced: 2025-03-31T18:41:47.832Z (about 1 year ago)
- Topics: lambda-functions, telegram-bot, uptime-monitor
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Purpose
This is an AWS Lambda function that can be used to monitor the availability of a single website by its URL and notify of any downtime to a Telegram channel via a Telegram Bot.
A [CloudWatch event](https://egghead.io/lessons/aws-use-cloudwatch-event-to-execute-an-aws-lambda-function-with-a-fixed-interval) with a rate expression of 1 minute can be set up to run this function on a time interval.
## Environment variables
- `URL`
The URL the function should periodically monitor for outages.
- `TELEGRAM_CHAT_ID`
The unique ID of the Telegram Bot.
- `TELEGRAM_TOKEN`
The authentication token to access the Telegram Bot that will be posting downtime notifications to the channel.
- `EXPECTED_TOKEN`
If set, the function will check the presence of the value within the page's HTML.