Visitar URL original
Use a reasonable sleep threshold when downloading files · MrBotDeveloper/pyrogram@be62ac3 · GitHub
Skip to content

Commit be62ac3

Browse files
committed
Use a reasonable sleep threshold when downloading files
1 parent 8f2e4f0 commit be62ac3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎pyrogram/client.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,8 @@ async def get_file(
930930
location=location,
931931
offset=offset,
932932
limit=limit
933-
)
933+
),
934+
sleep_threshold=30
934935
)
935936

936937
if isinstance(r, raw.types.upload.File):
@@ -961,7 +962,8 @@ async def get_file(
961962
location=location,
962963
offset=offset,
963964
limit=limit
964-
)
965+
),
966+
sleep_threshold=30
965967
)
966968

967969
elif isinstance(r, raw.types.upload.FileCdnRedirect):

0 commit comments

Comments
 (0)