user-defined channel watchlist — add any public Telegram channel by @username
Feature area
News panels / RSS feeds
Description
A @username input field in the Telegram Intel panel that lets users add any public Telegram channel to a personal watchlist, persisted in localStorage. The user types a username, sees a preview (channel title + member count), then clicks Add. Their saved channels appear as removable pills and their posts render alongside the curated feed.
No user login to Telegram required. The relay's existing authenticated GramJS session already has permission to read any public channel — this only needs two new GET routes on the relay and ~170 lines of frontend/service code.
User flow:
- User types
@ukraine_newsin a new input in the panel - Frontend debounces 800ms → calls
GET /telegram/resolve?username=ukraine_news - Relay resolves via
client.getEntity()→ returns title + member count, cached in Redis 24h - Panel shows: "Ukraine News · 89k members [+ Add]"
- User clicks Add → saved to
localStorageundertelegram:watchlist:v1 - Panel calls
GET /telegram/channel?username=ukraine_news&limit=20 - Relay fetches via
client.getMessages(), cached 60s (same TTL as curated feed) - Posts appear with a removable pill tag
Problem it solves
The Telegram Intel panel is currently locked to the 26 curated OSINT channels hardcoded in the Railway relay.
This is especially limiting for:
- Anyone who wants a specific telegram channel to look from
- Researchers and analysts who follow known channels not in the curated list
- Users outside the Middle East / Ukraine focus who want locally relevant OSINT channels
Alternatives considered
- Telegram Login Widget: only provides user identity, not a channel-reading session. Adds per-user session storage complexity with no benefit since the relay session already covers public channels.
- contacts.search keyword search: possible but Telegram rate-limits this aggressively. Better as a follow-up once username-based lookup is stable.
- Expanding the hardcoded 26: doesn't scale and requires a relay redeploy for every user request.
Additional context
No response
Can I work on this enhancement if we are adding this feature ??
Good news — PR #2262 from @lspassos1 implements this feature (custom Telegram channel watchlists). It's been approved and is ready to merge. Once it lands, this issue is resolved.
@ayad318 @R0h1tAnand — heads up that a working implementation is already in review.
@SebastienMelki Thanks
"Great to hear! Thanks for the heads-up, looking forward to it being merged."
On Mon, Mar 30, 2026, 8:41 PM Ayad Farhat @.***> wrote:
ayad318 left a comment (koala73/worldmonitor#1994) https://github.com/koala73/worldmonitor/issues/1994#issuecomment-4159229098
@SebastienMelki https://github.com/SebastienMelki Thanks
— Reply to this email directly, view it on GitHub https://github.com/koala73/worldmonitor/issues/1994?email_source=notifications&email_token=CAXZCSSNDQCI5GODOJLIBS34TMO3TA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJVHEZDEOJQHE4KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-4159229098, or unsubscribe https://github.com/notifications/unsubscribe-auth/CAXZCSRTSRYPPMACTV7A3M34TMO3TAVCNFSM6AAAAACW2ASCOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCNJZGIZDSMBZHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Status: partially addressed — keeping open for the Telegram-specific part.
What shipped: a user-defined live-channel watchlist that persists across reloads (src/live-channels-window.ts — parseYouTubeInput() + saveChannelsToStorage()). Today it supports YouTube channels/handles and HLS (.m3u8) stream URLs.
Still open (this issue): arbitrary public Telegram channels by @username. That needs a different ingestion path than YouTube/HLS.
Next steps when we pick this up:
- Add a Telegram reader in the relay (
t.me/s/<channel>public preview HTML, or Bot API) → normalize into the live-channel item shape. - Generalize
parseYouTubeInput()→parseChannelInput()recognizingt.me/<handle>/@tg:<handle>. - Persist alongside the existing watchlist; respect the per-user channel cap + add basic rate-limit/safelist to avoid abuse.
Thanks @ayad318 — the watchlist scaffolding is done, so this is now a scoped addition rather than a from-scratch build.
Agent-ready AC for PR #2262 (do not start a parallel watchlist):
- [ ] Resolve public
@usernamevia the existing GramJS session (GET /telegram/resolve) - [ ] Fetch recent posts (
GET /telegram/channel) with the same cache TTL as the curated feed - [ ] Persist watchlist in
localStoragekeytelegram:watchlist:v1, removable pills - [ ] Cap the list; public channels only
- [ ] Out of scope: Telegram Login Widget, private channels,
contacts.search, expanding the hardcoded curated pack
Relay file pointers remain scripts/ais-relay.cjs (loadTelegramChannels ~924). User-defined ≠ product-managed (#6654 X registry is the X analogue of the curated pack, not of this).