mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix downloading contacts (#1147)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user