ferogram.dev / ferogram-msgbox
MB
ferogram-msgbox
Update-gap tracking state machine (pts/qts/seq) for ferogram, keeping Telegram's lossy update stream in sync.
[dependencies] ferogram-msgbox = "0.6.5"
What it does
- Tracks the global pts/qts/seq/date counters, plus a separate pts per channel
- Detects gaps and buffers out-of-order updates before requesting a diff
- Decides when a periodic catch-up getDifference is due
- Classifies your own outgoing RPC responses into the same pts sequence
- Applies updates.getDifference / getChannelDifference results back into state
- A pure state machine: no async, no networking, no RPC calls
Explore the workspace