Skip to content

v2.5.1

Choose a tag to compare

@il90il90 il90il90 released this 07 May 04:59
· 195 commits to main since this release

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)