mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +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
|
# We also assume the API will always return, at least, one message if
|
||||||
# there is more to fetch.
|
# 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
|
return True
|
||||||
|
|
||||||
# Get the last message that's not empty (in some rare cases
|
# Get the last message that's not empty (in some rare cases
|
||||||
|
|
Loading…
Reference in New Issue
Block a user