Use a reasonable sleep threshold when downloading files

This commit is contained in:
Dan 2020-08-30 22:19:55 +02:00
parent 8f2e4f03b7
commit be62ac365f

View File

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