Repository navigation
v2.0.2
Fix Telegram document delivery for WebP images from TikTok slideshows and Instagram carousels.
- Convert WebP documents to full-size JPEG before uploading, preserving image dimensions and flattening transparency onto white. Animated WebP uses its first frame.
- Wait for WebP conversion before starting a single-document upload. Other document formats retain their original bytes and streaming behavior.
- Add
X-Telegram-Methodto responses that contain one Telegram API call, including a single album call, while preserving Telegram's response body and status. - Add tests for document albums, single-document uploads, original-file preservation, image dimensions, transparency, and buffer cleanup. Update the API documentation.
Validation: make check and make lint passed, including race-enabled tests, the CGO build, staticcheck, and govulncheck. No vulnerabilities found. Telegram delivery tests use local fixtures.