From 9d6150da37d3192e77b5d98eb26133e16fb698c4 Mon Sep 17 00:00:00 2001 From: Lonami Date: Mon, 3 Jun 2019 15:44:43 +0200 Subject: [PATCH] Fix downloading contacts to path (#1197) --- telethon/client/downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/downloads.py b/telethon/client/downloads.py index a6befd4f..60c071e4 100644 --- a/telethon/client/downloads.py +++ b/telethon/client/downloads.py @@ -743,7 +743,7 @@ class DownloadMethods(UserMethods): file, 'contact', '.vcard', possible_names=[first_name, phone_number, last_name] ) - f = open(file, 'wb', encoding='utf-8') + f = open(file, 'wb') else: f = file