Skip to content

s-nikravesh/telegram-json-to-vcf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Telegram Contacts JSON to VCF

You can export your Telegram contacts via Telegram desktop app (Settings -> Advanced -> Export Telegram data).
To convert the exported contacts (JSON file) to a VCF file and import it by your phone, use this script.

Usage

python3 telegram_json_to_vcf.py [--add-all] json_file vcf_file
Arguments:
--add-all: Whether to add all of the contacts or add them one by one
json_file: Path to JSON file
vcf_file: Path to VCF file

Examples:
python3 telegram_json_to_vcf.py --add-all ./contacts.json ./contacts.vcf
python3 telegram_json_to_vcf.py ./contacts.json .

Notes

  1. JSON file must have UTF-8 encoding.
  2. You can specify the VCF file name (see the examples).
  3. In case another file exists with the same name, then the VCF file is renamed.

About

Convert Telegram Contacts JSON File to VCF File

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages