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)