-
Notifications
You must be signed in to change notification settings - Fork 131
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
allow set max_id and min_id for MessageIter and SearchIter #304
base: master
Are you sure you want to change the base?
Conversation
Why is the existing |
If I use |
|
It would be very nice, if |
I've discussed this before and also argued it wasn't needed. But I may reconsider if more people need it. One of my worries is that some offsets seem to not always work, and exposing them here would mean people would expect them to work. If we introduce Regarding |
I'm +1 for the changes. I implemented a downloader and I also had to implement these methods to be able to efficiently process the ranges. offset_id is not enought if you need to evaluate if you have gap in the messages. |
Can you help me understand why? A practical example perhaps. |
I need to check that all the message from a chat are downloaded. I start from offset 0 to x. |
Right, so the usecase is "going back" to a "failed gap", and In that case, I think the implementation would make more sense if it had a single method that took a |
allow set max_id and min_id for MessageIter and SearchIter to filter messages like telethon.