Repository navigation
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); aModellearns 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.Headroomshares one model, so one account's flood wait teaches all:Fleet.Headroom(),gotd.fleet.headroom(min and median per class), and infleethttp. 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:Playeris atg.Invoker, and delivers each update after the calls recorded before it.tgtrace(#2046):tgtrace.Applywraps requests ininvokeWithTracewith the W3C trace context and baggage, andtgtrace.Extractcontinues 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