From be62ac365f26ff2594c3f1d52c59dc623d29d634 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 30 Aug 2020 22:19:55 +0200 Subject: [PATCH] Use a reasonable sleep threshold when downloading files --- pyrogram/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyrogram/client.py b/pyrogram/client.py index ba5cfb49..e7683c26 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -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):