github sanyok12345/teleproto v1.229.1

latest releases: v1.233.0, v1.232.1, v1.232.0...
one month ago

Changes

  • client.api accepts typed raw objects via call, resolves entity inputs and supports per-call DC, timeout, cancellation and retry options
  • Raw updates expose event.context for chat access; the existing middleware next() argument is unchanged
  • client.updates.watch shares polling capacity across channels instead of rejecting subscriptions beyond the polling limit; larger lists are polled less frequently
  • Connection lifecycle subscriptions: onConnecting, onConnect, onDisconnect, onReconnecting and onReconnect (#41)
  • High-level Communities methods for creation, peer links, requests, participants, notifications and grouped dialogs; pass includeCommunities: true to include community rows in getDialogs and iterDialogs
  • Experimental WEB relay transport through the existing proxy option

Fixes

  • Update recovery preserves independent sequences, deduplicates buffered updates and avoids retry storms
  • Invalid authorization suspends update polling; fresh sessions wait for sign-in before recovering updates
  • Disconnecting stops stale ping loops; reconnect callbacks run after the catch-up attempt
  • Watch filters, subscription cleanup and chat context initialization are applied consistently
  • ESM directory and deep imports resolve correctly alongside CommonJS (#43)
  • API declarations preserve EntityLike inputs and mutable parameter types, accept readonly call inputs and avoid slow raw-call completions
  • Declaration checks pass without skipLibCheck on TypeScript 4.9 and 5.9 with compatible Node.js types; keyboard builder types are fixed
  • Store sessions reuse legacy absolute-path directories, isolate account deletion and resolve cached peers correctly
  • Sign-in handles email codes, authentication restarts and successful code resends
  • MTProxy fake TLS and padded framing, Telegram media timeout retries, iterator limits and participant pagination are corrected
  • Forwarded messages return a flat list; MarkdownV2 and HTML preserve formatting entities

Upgrade

  • npm i teleproto@1.229.1

Don't miss a new teleproto release

NewReleases is sending notifications on new releases.