mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 05:24:51 +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,
|
||||
offset=offset,
|
||||
limit=limit
|
||||
)
|
||||
),
|
||||
sleep_threshold=30
|
||||
)
|
||||
|
||||
if isinstance(r, raw.types.upload.File):
|
||||
|
|
@ -961,7 +962,8 @@ class Client(Methods, Scaffold):
|
|||
location=location,
|
||||
offset=offset,
|
||||
limit=limit
|
||||
)
|
||||
),
|
||||
sleep_threshold=30
|
||||
)
|
||||
|
||||
elif isinstance(r, raw.types.upload.FileCdnRedirect):
|
||||
|
|
|
|||
Loading…
Reference in a new issue