Repository navigation
v5.3.7
Fixed
- Avatar filename mismatch (#35, #41) - Avatars are now saved as
{chat_id}_{photo_id}.jpgto match what the viewer expects. Previously saved as{chat_id}.jpgwhich caused avatars to not display.
Added
scripts/cleanup_legacy_avatars.py- Utility script to remove old{chat_id}.jpgavatar files after they've been replaced by the new format. Run with--dry-runto preview changes.
Changed
- Shared avatar utility - Avatar path generation moved to
src/avatar_utils.pyfor 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 # ApplyFull Changelog: v5.3.6...v5.3.7