diff --git a/pyrogram/methods/messages/search_messages.py b/pyrogram/methods/messages/search_messages.py index 03b266c3..f8d0cb33 100644 --- a/pyrogram/methods/messages/search_messages.py +++ b/pyrogram/methods/messages/search_messages.py @@ -181,7 +181,7 @@ class SearchMessages(Scaffold): if not messages: return - offset += 100 + offset += len(messages) for message in messages: yield message