Use offset 131072
This commit is contained in:
parent
ec9036e5a0
commit
de3b346c14
|
@ -131,7 +131,7 @@ async def handler(request):
|
|||
if tmp_offset > size:
|
||||
tmp_offset -= size
|
||||
continue
|
||||
async for chunk in client._iter_download(i, offset=tmp_offset, msg_data=(chat_id, i.id)):
|
||||
async for chunk in client._iter_download(i, offset=tmp_offset, limit=131072, msg_data=(chat_id, i.id)):
|
||||
yield chunk[:tmp_length]
|
||||
tmp_length -= len(chunk)
|
||||
if tmp_length < 1:
|
||||
|
|
Loading…
Reference in New Issue