Changes
- TL layer 228
- Network core rewritten: one clear connection lifecycle instead of tangled reconnect logic
- Temporary auth keys now live and die with their connection, so they can no longer go stale
- Faster downloads and uploads: far less copying on every file part and message
- Idle media sessions stay warm for 60s, repeat downloads skip the reconnect cost
- Connecting has a real timeout now, and unreachable DC addresses switch to alternates
downloadMediaanddownloadProfilePhotoaccept a string as the output pathdownloadPool.requestDeadlineMslets slow networks raise the per-part time limit
Fixes
- Media downloads no longer deadlock after the server drops an auth key (#23)
- Failed requests fail fast and retry instead of hanging forever
- Handshake bug that failed 1 in 256 connection attempts
- Connection state events (connected, disconnected, broken) reach event handlers again
- Downloading something non-downloadable throws a clear error instead of returning an empty result
Upgrade
npm i teleproto@latest