mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-24 10:23:44 +03:00
parent
aec957d62d
commit
b01d3d7a2f
|
@ -221,7 +221,7 @@ class _MessagesIter(RequestIter):
|
|||
#
|
||||
# We also assume the API will always return, at least, one message if
|
||||
# there is more to fetch.
|
||||
if not r.messages or r.messages[0].id <= self.request.limit:
|
||||
if not r.messages or (not self.reverse and r.messages[0].id <= self.request.limit):
|
||||
return True
|
||||
|
||||
# Get the last message that's not empty (in some rare cases
|
||||
|
|
Loading…
Reference in New Issue
Block a user