Skip to content

v2.0.2

Choose a tag to compare

@karilaa-dev karilaa-dev released this 14 Oct 20:17
9b81442

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-Method to 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.

Full changes since v2.0.1