mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 08:14:50 +00:00
Partial Revert "pyrofork: Handle FLOOD_PREMIUM_WAIT"
This reverts commit e414aa2812.
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
30272728be
commit
7c0481d2f0
1 changed files with 4 additions and 2 deletions
|
|
@ -974,7 +974,8 @@ class Client(Methods):
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset_bytes,
|
offset=offset_bytes,
|
||||||
limit=chunk_size
|
limit=chunk_size
|
||||||
)
|
),
|
||||||
|
sleep_threshold=30
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(r, raw.types.upload.File):
|
if isinstance(r, raw.types.upload.File):
|
||||||
|
|
@ -1009,7 +1010,8 @@ class Client(Methods):
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset_bytes,
|
offset=offset_bytes,
|
||||||
limit=chunk_size
|
limit=chunk_size
|
||||||
)
|
),
|
||||||
|
sleep_threshold=30
|
||||||
)
|
)
|
||||||
|
|
||||||
elif isinstance(r, raw.types.upload.FileCdnRedirect):
|
elif isinstance(r, raw.types.upload.FileCdnRedirect):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue