Skip to content

Support multiple telegram recipients via TELEGRAM_CHAT_IDS#174

Closed
TaprootFreak wants to merge 1 commit intodevelopfrom
feat/multi-recipient-telegram
Closed

Support multiple telegram recipients via TELEGRAM_CHAT_IDS#174
TaprootFreak wants to merge 1 commit intodevelopfrom
feat/multi-recipient-telegram

Conversation

@TaprootFreak
Copy link
Copy Markdown
Contributor

Summary

Replace the single TELEGRAM_CHAT_ID env-var with a comma-separated TELEGRAM_CHAT_IDS list. sendMessage iterates over every recipient; per-recipient failures are logged and skipped so a single bad chat-id (e.g. user blocked the bot) does not suppress the entire alert. sendMessage returns true iff at least one delivery succeeded.

Usage

TELEGRAM_CHAT_IDS=123456789,987654321

Why

Aligns LDS with the same multi-recipient pattern used by the d-EURO and JuiceDollar monitoring stacks plus DFXswiss/rangekeeper. Op-team gets multi-recipient delivery via a single env-var; no self-service /subscribe polling complexity needed for a small static team.

Migration

Azure App Service config needs TELEGRAM_CHAT_IDS set. Existing single chat-id flows through unchanged when it's the only entry. TELEGRAM_CHAT_ID env is no longer read.

Test plan

  • npm run build clean
  • After deploy: confirm bootstrap doesn't crash with empty list
  • Trigger a notify path: every chat-id in the list receives the message
  • One bad chat-id in the list does not block delivery to the others

Replace the single TELEGRAM_CHAT_ID env-var with a comma-separated
TELEGRAM_CHAT_IDS list. sendMessage iterates over every recipient;
per-recipient failures are logged and skipped so a single bad
chat-id does not suppress the entire alert. Returns true iff at
least one delivery succeeded.

Aligns LDS with the same multi-recipient pattern used by the d-EURO
and JuiceDollar monitoring stacks plus DFXswiss/rangekeeper, so an
op-team gets multi-recipient delivery via comma-separated env-var
without needing self-service /subscribe complexity.
@TaprootFreak
Copy link
Copy Markdown
Contributor Author

Superseded by /subscribe self-service pattern.

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.

1 participant