mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-20 20:16:38 +00:00
Fix reversed(client.iter_messages(offset_date=...))
This commit is contained in:
parent
80f19bd1f0
commit
6e5f90730e
@ -52,7 +52,9 @@ class _MessagesIter(RequestIter):
|
|||||||
if self.reverse:
|
if self.reverse:
|
||||||
if offset_id:
|
if offset_id:
|
||||||
offset_id += 1
|
offset_id += 1
|
||||||
else:
|
elif not offset_date:
|
||||||
|
# offset_id has priority over offset_date, so don't
|
||||||
|
# set offset_id to 1 if we want to offset by date.
|
||||||
offset_id = 1
|
offset_id = 1
|
||||||
|
|
||||||
if from_user:
|
if from_user:
|
||||||
|
Loading…
Reference in New Issue
Block a user