github sanyok12345/teleproto v1.224.2

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

Changes

  • Added testServers flag in TelegramClientParams for connecting to Telegram's test environment with built-in DC seed addresses (DC1/DC2/DC3, port 443)
  • Built-in production and test DC IP tables (PROD_DC_IPV4/IPV6, TEST_DC_IPV4/IPV6), used as seeds and as fallback when help.GetConfig is unavailable
  • Default starting DC for empty sessions is now DC2 (matches tdesktop), down from DC4
  • getDC now follows production DC routing for both environments (help.GetConfig is the source of truth, with built-in seeds as fallback)
  • Centralised pts/qts/seq tracking and gap recovery in a new UpdateManager
  • Switched channel-pts handling to wipe-on-diff strategy (PtsWaiter, modelled after tdesktop)
  • Replaced linear msg_id dedup buffer with sorted ReceivedIdsManager (binary-search insert, hard cap 400)
  • Activated exponential backoff (1→64s) on getDifference / getChannelDifference failures
  • Added explicit handling for UpdateChannelTooLong — triggers per-channel diff fetch

Fixes

  • Fixed pending-update buffers, album timers and channel-pts state surviving across disconnects
  • Fixed Ping / PingDelayDisconnect being wrapped in InvokeWithLayer after NewSessionCreated, which caused INPUT_METHOD_INVALID cascades on DC migration
  • Fixed disconnect() returning before the underlying TCP socket was actually closed, leading to overlapping reconnect cycles
  • Fixed EventBuilder.resolved flag persisting across reconnect, holding stale entity ids
  • Fixed re-entrancy when an event handler adds or removes handlers during dispatch

Don't miss a new teleproto release

NewReleases is sending notifications on new releases.