mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix global message search
This commit is contained in:
parent
a886d609d9
commit
ad4c49aa18
|
@ -77,7 +77,7 @@ class _MessagesIter(RequestIter):
|
||||||
filter=filter,
|
filter=filter,
|
||||||
min_date=None,
|
min_date=None,
|
||||||
max_date=offset_date,
|
max_date=offset_date,
|
||||||
offset_rate=None,
|
offset_rate=0,
|
||||||
offset_peer=types.InputPeerEmpty(),
|
offset_peer=types.InputPeerEmpty(),
|
||||||
offset_id=offset_id,
|
offset_id=offset_id,
|
||||||
limit=1
|
limit=1
|
||||||
|
@ -253,7 +253,7 @@ class _MessagesIter(RequestIter):
|
||||||
else:
|
else:
|
||||||
self.request.offset_peer = types.InputPeerEmpty()
|
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):
|
class _IDsIter(RequestIter):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user