From 99a81ad1d6699cc0f62dce55fa208f74b5efb1d3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 18 Dec 2017 09:07:51 +0100 Subject: [PATCH] Fix file uploading for Python < 3.5 --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 3ec87db3..ae07e3ac 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -532,7 +532,7 @@ class Client: chunk = f.read(512 * 1024) if not chunk: - md5_sum = md5_sum.digest().hex() + md5_sum = "".join([hex(i)[2:].zfill(2) for i in md5_sum.digest()]) break md5_sum.update(chunk)