Skip to content

Commit

Permalink
Fix global message search
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jan 26, 2021
1 parent a886d60 commit ad4c49a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telethon/client/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def _init(
filter=filter,
min_date=None,
max_date=offset_date,
offset_rate=None,
offset_rate=0,
offset_peer=types.InputPeerEmpty(),
offset_id=offset_id,
limit=1
Expand Down Expand Up @@ -253,7 +253,7 @@ def _update_offset(self, last_message, response):
else:
self.request.offset_peer = types.InputPeerEmpty()

self.request.offset_rate = getattr(response, 'next_rate', None)
self.request.offset_rate = getattr(response, 'next_rate', 0)


class _IDsIter(RequestIter):
Expand Down

0 comments on commit ad4c49a

Please sign in to comment.