Skip to content

Add contact backup with full metadata and active avatars#1

Merged
diogogithub merged 6 commits into
masterfrom
feature/contact-backup
Jul 17, 2026
Merged

Add contact backup with full metadata and active avatars#1
diogogithub merged 6 commits into
masterfrom
feature/contact-backup

Conversation

@diogogithub

Copy link
Copy Markdown
Owner

Summary

  • add tg_contacts_backup.py to export Telegram contacts as CSV and JSON;
  • retrieve detailed per-contact metadata with contacts.GetContactsRequest and users.GetFullUserRequest;
  • download each contact's current active profile photo by default;
  • respect Telegram flood waits and preserve per-contact errors without aborting the export;
  • document privacy implications, output structure, and command options;
  • ignore Telethon session credentials and generated archives;
  • constrain dependencies to the compatible Telethon 1.x API;
  • add basic Python CI checks and correct the MIT license attribution.

Checks

  • python -m py_compile tg_contacts_backup.py
  • CI validates both scripts on Python 3.10 and 3.12.

Feature request addressed

This implements the Codeberg request to preserve contact IDs, names, usernames, richer contact information, and active avatars for account recovery scenarios.

@diogogithub
diogogithub merged commit 0528b0e into master Jul 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant