fix chunk_size for downloads
This commit is contained in:
parent
c200a2a2b3
commit
53f2792374
|
@ -21,7 +21,7 @@ class Client(TelegramClient):
|
|||
part_count = math.ceil(file_size / part_size)
|
||||
part = first_part
|
||||
try:
|
||||
async for chunk in self.iter_download(file, offset=first_part * part_size, file_size=file_size, limit=part_size):
|
||||
async for chunk in self.iter_download(file, offset=first_part * part_size, file_size=file_size, request_size=part_size):
|
||||
if part == first_part:
|
||||
yield chunk[first_part_cut:]
|
||||
elif part == last_part:
|
||||
|
|
Loading…
Reference in New Issue