Browse Source

Use offset 131072

master
blank X 1 year ago
parent
commit
de3b346c14
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 2
      streamtg.py

2
streamtg.py

@ -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…
Cancel
Save