From 0f6e89e6b36991d989e239fae3a215564f918796 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 26 Feb 2018 17:01:33 +0100 Subject: [PATCH] Add missing client.stop() --- examples/get_history.py | 2 ++ examples/get_participants.py | 2 ++ 2 files changed, 4 insertions(+) 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