Use offset 131072

This commit is contained in:
blank X 2021-05-26 14:03:51 +07:00
parent ec9036e5a0
commit de3b346c14
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

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