Repository navigation
Features & Improvements
- Added shared caching for Telegram messages and peer information across RSS, JSON, and media requests, reducing repeated API calls. Enabled by default, with optional zstd compression.
- Reuse cached history for media lookups and merge concurrent requests for the same data.
- Preserve cached data and active FLOOD_WAIT cooldowns across graceful restarts.
- Serve feeds from stale cached data during FLOOD_WAIT, while keeping other channels available.
- Added per-client sliding-window rate limits, with separate quotas for feeds and media. Authenticated users share their quota across IP addresses.
- Added
Cache-Statusresponse headers and cache/rate-limit metrics in access logs. - Cancel upstream requests and media streams when clients disconnect.
- Updated dependencies, including Amp File 4 and Symfony 8.
Fixes
- Fixed RSS item titles to use the first line of each message.
- Improved API response validation and handling of missing avatars.
- Disabled nginx buffering for media streams.
- Added
Retry-Afterheaders for rate limits, temporary bans, and FLOOD_WAIT responses. - Fixed graceful shutdown and dependency installation on startup.
Requirements
- PHP 8.4.1+.
- Optional
ext-zstd0.18+ for cache compression.
Full Changelog: v4.5.0...v5.0.0