From aa662654785ad7dfa73339704d0e29b00729a9f7 Mon Sep 17 00:00:00 2001 From: Jeremy Neiman Date: Mon, 1 Feb 2021 08:48:48 -0500 Subject: [PATCH] fix bug with member pagination --- archivebot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archivebot.py b/archivebot.py index 4929a15..e5861e0 100644 --- a/archivebot.py +++ b/archivebot.py @@ -70,7 +70,9 @@ def get_channel_info(channel_id): response = app.client.conversations_members(channel=channel["id"]) members = response["members"] while response["response_metadata"]["next_cursor"]: - response = app.client.conversations_members(channel=channel["id"]) + response = app.client.conversations_members( + channel=channel["id"], cursor=response["response_metadata"]["next_cursor"] + ) members += response["members"] return (