github gotd/td v0.177.0

one hour ago
  • telegram/headroom (#2044): how close a client is to Telegram's limits per class of requests, not how many FLOOD_WAIT it got. Requests are counted over sliding windows (10 s, 1 min, 10 min); a Model learns the ceiling of each window from flood waits (windows at least as long as the wait) and raises it when more requests pass. gotd.client.headroom. In a fleet, fleet.Options.Headroom shares one model, so one account's flood wait teaches all: Fleet.Headroom(), gotd.fleet.headroom (min and median per class), and in fleethttp. Dashboard panels.
  • telegram/replay (#2045): record a session (calls with answers or errors, updates) as JSON lines and play it back in tests with no network: Player is a tg.Invoker, and delivers each update after the calls recorded before it.
  • tgtrace (#2046): tgtrace.Apply wraps requests in invokeWithTrace with the W3C trace context and baggage, and tgtrace.Extract continues the trace in a server, for one trace from a client to its server (teled). Not for Telegram's servers.
  • CI: coverage removed (#2047, #2048).

Full Changelog: v0.176.0...v0.177.0

Don't miss a new td release

NewReleases is sending notifications on new releases.