Fix global message search

This commit is contained in:
Lonami Exo 2021-01-26 21:06:23 +01:00
parent a886d609d9
commit ad4c49aa18

View File

@ -77,7 +77,7 @@ class _MessagesIter(RequestIter):
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
@ -253,7 +253,7 @@ class _MessagesIter(RequestIter):
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):