Add missing client.stop()

This commit is contained in:
Dan 2018-02-26 17:01:33 +01:00
parent 5cab0b42bb
commit 0f6e89e6b3
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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