-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongo storage to reduce PeerIdInvalid errors #442
Comments
🤧 what are you gonna do about Auth key duplication error? |
will it be hard to handle? |
not really, all it will need is new authentication method, something like, it extracts auth_key, dc_id, user_id and other stuffs from given pyro session key and update that in Mongo Storage. If new authentication method is implement correctly you can move all env to a collection in database. Maybe play around with this Mongo Storage Base
|
NIce. it's very good. |
PeerIdInvalid can also be reduce by using (link to profile) mention and extract user id from mention instead of using user id directly Before I was also confused about this but after testing it's working and not won't raise PeerIdInvalid |
Currently, all peer data are stored in the memory. Hence it is cleared in every restart. So better to save them in the database and fetch them when needed. With that, we can reduce
PeerIdInvalid
errors and increase user happiness :)https://github.com/pyrogram/pyrogram/blob/master/pyrogram/storage/storage.py
The text was updated successfully, but these errors were encountered: