mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Use a reasonable sleep threshold when downloading files
This commit is contained in:
parent
8f2e4f03b7
commit
be62ac365f
1 changed files with 4 additions and 2 deletions
|
|
@ -930,7 +930,8 @@ class Client(Methods, Scaffold):
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
limit=limit
|
limit=limit
|
||||||
)
|
),
|
||||||
|
sleep_threshold=30
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(r, raw.types.upload.File):
|
if isinstance(r, raw.types.upload.File):
|
||||||
|
|
@ -961,7 +962,8 @@ class Client(Methods, Scaffold):
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
limit=limit
|
limit=limit
|
||||||
)
|
),
|
||||||
|
sleep_threshold=30
|
||||||
)
|
)
|
||||||
|
|
||||||
elif isinstance(r, raw.types.upload.FileCdnRedirect):
|
elif isinstance(r, raw.types.upload.FileCdnRedirect):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue