Increase channel result to support max of 1K channels for finding slack channel

This commit is contained in:
allegroai 2021-05-12 15:40:20 +03:00
parent 0e9538d42a
commit 4e4aab56a8

View File

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