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