mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix reversed(client.iter_messages(offset_date=...))
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user