mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix downloading contacts to path (#1197)
This commit is contained in:
@@ -743,7 +743,7 @@ class DownloadMethods(UserMethods):
|
|||||||
file, 'contact', '.vcard',
|
file, 'contact', '.vcard',
|
||||||
possible_names=[first_name, phone_number, last_name]
|
possible_names=[first_name, phone_number, last_name]
|
||||||
)
|
)
|
||||||
f = open(file, 'wb', encoding='utf-8')
|
f = open(file, 'wb')
|
||||||
else:
|
else:
|
||||||
f = file
|
f = file
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user