mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Update offset by the amount of messages retrieved
This commit is contained in:
parent
31148c3a56
commit
2db8256276
@ -181,7 +181,7 @@ class SearchMessages(Scaffold):
|
||||
if not messages:
|
||||
return
|
||||
|
||||
offset += 100
|
||||
offset += len(messages)
|
||||
|
||||
for message in messages:
|
||||
yield message
|
||||
|
Loading…
Reference in New Issue
Block a user