Telegram /subscribe self-service for LDS bot#175
Draft
TaprootFreak wants to merge 1 commit intodevelopfrom
Draft
Telegram /subscribe self-service for LDS bot#175TaprootFreak wants to merge 1 commit intodevelopfrom
TaprootFreak wants to merge 1 commit intodevelopfrom
Conversation
Aligns LDS with the same self-service /subscribe pattern that the d-EURO and JuiceDollar bots use plus DFXswiss/rangekeeper: each operator opens a private chat with the bot, sends /start (or /subscribe), and is appended to a persisted subscriber list. /unsubscribe removes them; /help lists the commands. - Adds node-telegram-bot-api with polling and replaces the existing fetch-only flow. - Replaces TELEGRAM_CHAT_ID env-var with TELEGRAM_GROUPS_JSON pointing at the persisted subscribers file (Azure Files mount in production). - sendMessage iterates over every subscriber sequentially; per-chat failures are logged and skipped, returns true iff at least one delivery succeeded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace hardcoded
TELEGRAM_CHAT_IDwith /subscribe self-service. Aligns LDS with the same telegram delivery pattern as the d-EURO, JuiceDollar and RangeKeeper bots./start//subscribe//unsubscribe//helpcommands.TELEGRAM_GROUPS_JSON(Azure Files mount in production).Test plan
npm run buildclean/startsubscribes