diff --git a/examples/get_history.py b/examples/get_history.py index f1f36eca..34e6a34c 100644 --- a/examples/get_history.py +++ b/examples/get_history.py @@ -31,5 +31,7 @@ while True: history.extend(messages.messages) offset += limit +client.stop() + # Now the "history" list contains all the messages sorted by date in # descending order (from the most recent to the oldest one) diff --git a/examples/get_participants.py b/examples/get_participants.py index 3397eb42..89b01f60 100644 --- a/examples/get_participants.py +++ b/examples/get_participants.py @@ -35,4 +35,6 @@ while True: users.extend(participants.users) offset += limit +client.stop() + # Now the "users" list contains all the members of the target chat