github sanyok12345/teleproto v1.225.4

latest releases: v1.234.0, v1.233.0, v1.232.1...
5 months ago

Changes

  • Fixed a crash while iterating dialogs (iterDialogs()) — dialogs whose top message isn't returned by Telegram no longer throw Cannot read properties of undefined (reading 'date'). Dialog.date is now optional and falls back to undefined
  • Duplicate NewMessage updates are now filtered out — a message redelivered both live and via getDifference (the latter dispatched with pts: 0, bypassing the pts dedup) is no longer delivered to handlers twice
  • QR code login can now be cancelled — pass an abortSignal (AbortController) to signInUserWithQrCode; the flow stops polling for tokens and rejects with an AbortError. Also fixes a leaked update handler that was registered on every QR attempt (#12)
  • Removed a redundant unused-date write in StoreSession (#13)

Upgrade

  • Run: npm i teleproto@latest

Don't miss a new teleproto release

NewReleases is sending notifications on new releases.