Changes
- Fixed a crash while iterating dialogs (
iterDialogs()) — dialogs whose top message isn't returned by Telegram no longer throwCannot read properties of undefined (reading 'date').Dialog.dateis now optional and falls back toundefined - Duplicate
NewMessageupdates are now filtered out — a message redelivered both live and viagetDifference(the latter dispatched withpts: 0, bypassing the pts dedup) is no longer delivered to handlers twice - QR code login can now be cancelled — pass an
abortSignal(AbortController) tosignInUserWithQrCode; the flow stops polling for tokens and rejects with anAbortError. 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