Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Client.iter_history(offset_date=<some date>, reverse=True) ignoring offset_date #494
Comments
|
Can I look into this? |
This behavior happened in any telegram group. Just run examples that i write above. Or i didn't get what do you mean? |
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zipand reproduced the issue using the latest development version.Description
When i use Client.iter_history(offset_date=, reverse=True) it returns all history without offset_date limits. I.e. I get messages created before offset_date and after offset_date.
This is undocumented here behavior?
Or this its a bug?
Would be good to fix this behavior to get messages older that date in reverse order.
And better for me, if it possible, to get messages newest that date in reverse order, as i feature requested in 495
Thank you.
Steps to Reproduce
My out:
Without offset_date and reverse=True output the same but reversed (its OK):
My out:
With offset_date only everything works fine, and messages limiting by creation date:
Out: