From 7c0481d2f0802428406e21e91a3e686436d29a19 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sat, 15 Jun 2024 13:04:04 +0700 Subject: [PATCH] Partial Revert "pyrofork: Handle FLOOD_PREMIUM_WAIT" This reverts commit e414aa281210149c31a6d3935e31b211193074bf. Signed-off-by: wulan17 --- pyrogram/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyrogram/client.py b/pyrogram/client.py index ab4c5945..f8f803a2 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -974,7 +974,8 @@ class Client(Methods): location=location, offset=offset_bytes, limit=chunk_size - ) + ), + sleep_threshold=30 ) if isinstance(r, raw.types.upload.File): @@ -1009,7 +1010,8 @@ class Client(Methods): location=location, offset=offset_bytes, limit=chunk_size - ) + ), + sleep_threshold=30 ) elif isinstance(r, raw.types.upload.FileCdnRedirect):