mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix downloading contacts (#1147)
This commit is contained in:
parent
41e4d0f788
commit
f95933c246
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user