Skip to content

Add Telegram downtime/recovery notifications - #19

Open
wittjeff wants to merge 8 commits into
masterfrom
add-telegram-notifications
Open

Add Telegram downtime/recovery notifications#19
wittjeff wants to merge 8 commits into
masterfrom
add-telegram-notifications

Conversation

@wittjeff

Copy link
Copy Markdown
Contributor

What

Adds a Telegram notification to .upptimerc.yml so downtime/recovery pings a phone directly, on top of the GitHub downtime issue.

Why

assignees: wittjeff is already set, yet production issue #17 stayed open ~3 days unnoticed — the GitHub-issue signal alone wasn't loud enough. A Telegram push closes that gap.

Secrets required (set before this helps)

The uptime workflow already exposes all secrets to Upptime via SECRETS_CONTEXT, so no workflow change is needed — just add two repo secrets:

  • TELEGRAM_TOKEN — bot token from @Botfather
  • TELEGRAM_CHAT_ID — your chat id with that bot (message the bot, then https://api.telegram.org/bot<TOKEN>/getUpdatesresult[].message.chat.id, or use @userinfobot)

Until both secrets exist the notification is simply skipped; no failures.

Note (separate decision)

Org is on the GitHub Free plan. Flipping this repo private would meter the */5 uptime cron against the 2,000-min allowance (~8,600+ min/mo needed) and stop monitoring within ~a week, plus take the Pages status site down. Recommend keeping it public, or moving checks to a self-hosted runner if privacy is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants