You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# make html or json to vcf# use path from step 2html2vcf('./contacts.html')
json2vcf('./result.json')
# you can also make html or json to vcf with custom name and custom pathhtml2vcf('contacts.html', 'custom_name', 'your/path/to/save/vcf')
json2vcf('result.json', 'custom_name', 'your/path/to/save/vcf')
# make json and html to dicthtml2dict('contacts.html')
json2dict('result.json')
#result is like this# {name: {phone: phone_number, date: date}, ...}# make dict that is made by html or json to vcfcontract=html2dict('contacts.html')
dict2vcf(contract)
#ordict2vcf(contract, 'custom_name', 'your/path/to/save/vcf')
You will get contacts.vcf
Import contacts.vcf to your phone
Enjoy!
download contacts.html or result.json
Open Telegram Desktop
Click Settings
Click Advanced
Click Export Telegram Data
Click Export contacts you can choose HTML or JSON below Export contacts
you will get contacts.html or result.json in your download folder
Note
This script is tested on Windows 11 and Telegram Desktop 4.8.10