mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-06-05 22:09:12 +02:00
fix chunk_size for downloads
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user