mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03: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 offset_id:
|
||||
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
|
||||
|
||||
if from_user:
|
||||
|
|
Loading…
Reference in New Issue
Block a user