Menu

I built a Telegram alert relay that never sees portfolio data
πŸ“°

I built a Telegram alert relay that never sees portfolio data

DEV Community: mobileΒ·FolioSpanΒ·4 days ago
#Ber7iVlV
#devtomobile#devto#dev#portfolio#telegram
Long article (322 words) β€” no AI summary yet.
Reading 0:00
15s threshold

I built a Telegram alert relay that never sees portfolio data

FolioSpan is a local-first portfolio tracker. When users asked for Telegram delivery of price alerts, the obvious design β€” send the portfolio to a server, evaluate there, forward the alert β€” was off the table. The app's whole point is that holdings never leave the device unless you opt in.

So the relay is deliberately blind.

The shape of it

Alert evaluation happens on-device. The app periodically checks prices in the background and composes the finished notification text locally β€” "Portfolio value crossed 1.00", "BTC moved -6.2% in 24h".

The worker is a dumb pipe. A Cloudflare Worker exposes /link , /webhook , /send , /status . Its KV stores only an opaque link token mapped to a chat ID. No holdings, no prices, no portfolio β€” ever.

Linking is one-shot. The app opens a t.me/bot?start=<token> URL; the token is single-use with a 10-minute TTL.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.