From 4e4aab56a8223c816974da3f293bc6ab897f209a Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 12 May 2021 15:40:20 +0300 Subject: [PATCH] Increase channel result to support max of 1K channels for finding slack channel --- examples/services/monitoring/slack_alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/services/monitoring/slack_alerts.py b/examples/services/monitoring/slack_alerts.py index 471b0fe8..731a0744 100644 --- a/examples/services/monitoring/slack_alerts.py +++ b/examples/services/monitoring/slack_alerts.py @@ -69,7 +69,7 @@ class SlackMonitor(Monitor): self.slack_client.api_test() # Find channel ID - response = self.slack_client.conversations_list() + response = self.slack_client.conversations_list(limit=1000) channel_id = [channel_info.get('id') for channel_info in response.data['channels'] if channel_info.get('name') == self.channel] if not channel_id: