v2.5.1
v2.5.1 — History export now fetches complete chat history
Bug fix
History export was stopping early and missing older messages.
The root cause: the Telegram API pages also include MessageService objects (e.g. user joined, message pinned) and MessageEmpty slots alongside regular Message objects. The previous code counted only regular messages for the pagination stop condition:
- A page of 97 regular + 3 service messages totals 100 items (full page), but the old check saw 97 < 100 and stopped — cutting off everything older.
- The page offset (offset_id) was also derived only from regular-message IDs, potentially creating gaps around service messages.
The fix applies to three code paths:
- Chat history export (📤 button)
- Sync (⬇ Sync button)
- Missed-update catch-up (triggered by Telegram's UpdateChannelTooLong)