mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-10 16:12:22 +03:00
parent
4b933069f1
commit
3e511484c7
|
@ -443,6 +443,9 @@ class DownloadMethods:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'The part size must be evenly divisible by 4096.')
|
'The part size must be evenly divisible by 4096.')
|
||||||
|
|
||||||
|
if isinstance(file, pathlib.Path):
|
||||||
|
file = str(file.absolute())
|
||||||
|
|
||||||
in_memory = file is None or file is bytes
|
in_memory = file is None or file is bytes
|
||||||
if in_memory:
|
if in_memory:
|
||||||
f = io.BytesIO()
|
f = io.BytesIO()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user