Use a reasonable sleep threshold when downloading files
This commit is contained in:
parent
8f2e4f03b7
commit
be62ac365f
@ -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 New Issue
Block a user