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
methods: Drop support for iterators where they are not needed #969
Conversation
Since we used a list there anyway, this approach will lead to more localized errors and can reduce function overhead. Signed-off-by: devops117 <55235206+devops117@users.noreply.github.com>
An example usecase would be for a normal bot which uses range based on message ids instead of keeping a track of messages and using the DeletedMessagesHandler. Signed-off-by: devops117 <55235206+devops117@users.noreply.github.com>
|
There are multiple places where iterators are accepted ( |
|
Thanks for mentioning that, so I'll rename the PR and look for them, should I revert the pts_count commit? |
|
Returning the affected messages is fine. The other methods left are forward_messages, get_messages and get_users. |
Signed-off-by: devops117 <55235206+devops117@users.noreply.github.com>
|
Looking forward to a code review or a possible merge. |
|
I've applied some minor changes and merged. Thanks. |
|
After some feedback I decided to revert some of the changes applied here in order to favor back usage convenience instead of implementation simplicity. Iterators are now allowed again as they make usages simpler and less cluttered. |


It's untested code
Appropriate description should be there in commit messages