Changes
- Browser support, no polyfills needed
- Custom transports through
Transport.connectandWebSocketTransport.webSocket update.missedandcatchUp: falsefor updates missed while offlineerrors.handleanderrors.matchfor typed error handlingRichContentandRichtext helpers for rich messagesteleproto/clientexports the account, contacts, folders, forums, invite links, stickers and stories modulesclient.updates.watchpauses channel polling during flood waits
Fixes
- TL objects are read where code generation is disallowed (#52)
StoreSessionno longer touches the globallocalStorageof Node.js, anddelete()removes only its own keys- The connection survives system sleep and suspended tabs
client.updates.watchretries channel requests after flood waits- Posts skipped by
channelDifferenceTooLongare delivered - Channel pts are reset on
PERSISTENT_TIMESTAMP_INVALID TelegramClient.eventsis typed instead ofany
Upgrade
npm i teleproto@1.232.1