github GeiserX/Telegram-Archive v5.3.7

latest releases: v9.3.3, v9.3.2, v9.3.1...
8 months ago

Fixed

  • Avatar filename mismatch (#35, #41) - Avatars are now saved as {chat_id}_{photo_id}.jpg to match what the viewer expects. Previously saved as {chat_id}.jpg which caused avatars to not display.

Added

  • scripts/cleanup_legacy_avatars.py - Utility script to remove old {chat_id}.jpg avatar files after they've been replaced by the new format. Run with --dry-run to preview changes.

Changed

  • Shared avatar utility - Avatar path generation moved to src/avatar_utils.py for consistency between backup and listener
  • Skip redundant downloads - Avatars are only downloaded when the file doesn't exist or is empty

Upgrade Notes

Legacy avatar files ({chat_id}.jpg) are still supported via fallback. To clean up old files after new-format avatars are downloaded:

docker exec telegram-backup python scripts/cleanup_legacy_avatars.py --dry-run  # Preview
docker exec telegram-backup python scripts/cleanup_legacy_avatars.py            # Apply

Full Changelog: v5.3.6...v5.3.7

Thanks to @fovendor for the contribution in #41!

Don't miss a new Telegram-Archive release

NewReleases is sending notifications on new releases.