mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Fix file uploading for Python < 3.5
This commit is contained in:
parent
14127ae1f0
commit
99a81ad1d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user