Fix downloading contacts (#1147)

This commit is contained in:
Lonami 2019-04-02 14:33:41 +02:00 committed by GitHub
parent 41e4d0f788
commit f95933c246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ class DownloadMethods(UserMethods):
file, 'contact', '.vcard',
possible_names=[first_name, phone_number, last_name]
)
f = open(file, 'w', encoding='utf-8')
f = open(file, 'wb', encoding='utf-8')
else:
f = file