Fix reversed(client.iter_messages(offset_date=...))

This commit is contained in:
Lonami Exo 2019-05-22 12:20:02 +02:00
parent 80f19bd1f0
commit 6e5f90730e

View File

@ -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: