Skip to content

Instantly share code, notes, and snippets.

@Amir-P
Amir-P / converter.py
Last active October 2, 2023 09:41
Convert JSON exported contacts from Telegram to vCard (.vcf)
import sys
import json
input_file = sys.argv[1]
output_file = sys.argv[2]
output_file = open(output_file, 'w')
def to_vcf_string(first_name, last_name, phone):
vcf_lines = []