[X] I am sure the error is coming from Pyrogram's code and not elsewhere
[X] I have searched in the issue tracker for similar bug reports, including closed ones
[X] I ran pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip and reproduced the issue using the latest development version
Description
have set client sleep_threshold=89000
downloading media, the program is suddenly interrupted.
show FLOOD_PREMIUM_WAIT_7, and the downloaded file size is 0
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip
and reproduced the issue using the latest development versionDescription
have set client sleep_threshold=89000 downloading media, the program is suddenly interrupted. show FLOOD_PREMIUM_WAIT_7, and the downloaded file size is 0
Steps to reproduce
msg = await tiqu_user_app.get_messages(chat_id=msg.chat.id, message_ids=msg.id) file = await tiqu_user_app.download_media(msg, file_name=filename_temp, progress=progress, progress_args=(download_msg, f"{len(msgs)}-{i+1}",))
the message is belong to media_group.
Code example
No response
Logs