Comments (8)
What raises the FLOOD_WAIT_X error is ExportAuthorization.
The problem is that Pyrogram creates new keys for every file downloaded, and the server is limiting us in doing so. We should instead create one, cache it and re-use it when needed.
from pyrogram.
@surkum Can I ask you how many files have you tried to download? More or less. Just to get an idea of when such situation would occur.
from pyrogram.
@delivrance I was trying to backup a long conversation (14K messages), and all it's media files(~2000), it started to fail around 400
from pyrogram.
@surkum Hi. I've pushed some changes to a new branch. Use pip3 install -U git+https://github.com/pyrogram/pyrogram@cache-sessions
to test this out and tell me how it goes.
from pyrogram.
@delivrance I can confirm that the issue is solved with this patch, I've been able to download +3K media elements from a stream without problems. thx.
from pyrogram.
Let's keep this open as a reminder until is merged.
from pyrogram.
I had this issue again recently. After research, I found that the part with media_sessions caching was removed in following commit: 8441ce2f
@delivrance Can you tell why you removed this code? Is there any issues coming from Telegram servers or you just forgot to add this functionality while refactoring get_file() code? I found no comments about it.
from pyrogram.
I also got the same error
File "/opt/python/pyrogram/client.py", line 870, in get_file
exported_auth = await self.invoke(
File "/opt/python/pyrogram/methods/advanced/invoke.py", line 79, in invoke
r = await self.session.invoke(
File "/opt/python/pyrogram/session/session.py", line 389, in invoke
return await self.send(query, timeout=timeout)
File "/opt/python/pyrogram/session/session.py", line 357, in send
RPCError.raise_it(result, type(data))
File "/opt/python/pyrogram/errors/rpc_error.py", line 91, in raise_it
raise getattr(
pyrogram.errors.exceptions.flood_420.FloodWait: Telegram says: [420 FLOOD_WAIT_X] - A wait of 833 seconds is required (caused by "auth.ExportAuthorization")
from pyrogram.
Related Issues (20)
- Обновить
- ОБНОВИТЬ ПАКЕТ СУКА!!!!!!!!!!!!!!!
- ГДЕ ЁБАНЫЕ ОБНОВЛЕНИЯ????????
- Your library is the BEST!
- Which is the Best Fork of Pyrogram? HOT 9
- Message missing text HOT 5
- Fix: Smart-plugin not supporting an off-drive path
- forward_messages missing HOT 2
- Pyrogram is incompatible with PYTHONOPTIMIZE=2 (or -OO)
- CHAT_ADMIN_REQUIRED HOT 5
- Unable to connect due to network issues: Connection timed out
- Hardcoded Session.START_TIMEOUT
- issue tiwh
- Trouble Accessing Messages Containing Quotes HOT 2
- Fetch more than 200 or filter by deleted / last seen a long time ago #4342 HOT 1
- Ability to specify session file path HOT 1
- Issue: Ban from 'pyrogramchat' Telegram Group Due to Verification Bot Malfunction HOT 1
- Slow Upload Speed HOT 1
- [400 PEER_ID_INVALID] but I met this peer in a group chat! On real client I can DM them. HOT 2
- 求大佬维护群聊管理员匿名用户的识别问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrogram.