mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +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 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:
|
||||||
|
Reference in New Issue
Block a user