From 451e37422fbae86e4baa2ba7ba33fe278a73e72f Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Tue, 17 Dec 2024 14:47:36 +0000 Subject: [PATCH] add filter to the converstions_list --- scripts/slack_notification.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/slack_notification.py b/scripts/slack_notification.py index 3301a8f..35ae286 100644 --- a/scripts/slack_notification.py +++ b/scripts/slack_notification.py @@ -52,7 +52,9 @@ def parse_environment_variables(): def get_channel_id(client, channel_name): try: - conversation_data = client.conversations_list() + conversation_data = client.conversations_list( + filter="public_channel,private_channel" + ) if not conversation_data.get("ok", False): print("Failed to fetch channels") sys.exit(2)