fix chunk_size for downloads

This commit is contained in:
odysseusmax 2020-08-12 11:03:44 +00:00
parent c200a2a2b3
commit 53f2792374
1 changed files with 1 additions and 1 deletions

View File

@ -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: