Changes
- Layer 232: share themes, no-paid-messages tokens, wallet cards and star gift deposit, withdrawal, display and deletion methods
payments.getStarGiftWithdrawalUrltakestmpPasswordinstead ofpassword(schema change)- Rebuilt network core: connection lifecycle, keepalive, reconnect pacing and flood control
- The default connection is obfuscated TCP instead of full TCP; pass
connection: ConnectionTCPFullto keep the old framing - Faster update recovery: gaps are filled after 700 ms, channel gaps are fetched at once, and silent connections are checked with
updates.getState - Sessions store the update state, so updates missed while the client was offline are fetched after a restart
- File transfers use adaptive part sizes, in-flight budgets and premium limits; downloads through CDN data centers are supported
- Faster TL runtime: the package is 24% smaller unpacked, the API loads twice as fast with a third of the memory, and parsing is about 4x faster with 6x less memory per object
Api.Messageis a realCustomMessagesubclass, so its getters work before a client is created- Deprecated, still working and logging a warning:
networkSocket,PromisedNetSockets,PromisedWebSocketsand proxy connection classes passed asconnection; usetransportinstead - Previous deep import paths such as
teleproto/client/uploadskeep working
Fixes
- MTProxy
ddandeesessions no longer fail on the first encrypted message - Reconnects through fake TLS proxies are paced instead of bursting, so proxies no longer reject the client as a scanner
- A failed connection no longer switches the session to IPv6 when
useIPV6is off getPeerDialogsand other dialog methods accept usernames,"me"and entitieschatIdof basic groups is resolved from marked ids in raw requests; secret chat ids are left intactutils.getPeerIdno longer mutates the given peerclient.updates.watchstops polling a channel when the returned function is calledCallbackQuery.editedits the message with the button without passing its id- TL objects with a flag shared between a
truefield and a value serialize correctly
Upgrade
npm i teleproto@1.232.0