aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-19 19:10:05 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit435ca060358da8c37d9795e984435ad9d7773e41 (patch)
tree33daec2a390c2fd968490f1c09c0fbfdd9cd7c9a /slack
parented15732bc94a435b63573f00b1f77341da455cb1 (diff)
downloadwee-slack-435ca060358da8c37d9795e984435ad9d7773e41.tar.gz
Include cookie when making the websocket connection
Slack began to require this for xoxc tokens today.
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_workspace.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 8e61341..4ad5d73 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -254,6 +254,7 @@ class SlackWorkspace:
self._ws = create_connection(
url,
self.config.network_timeout.value,
+ cookie=self.config.api_cookies.value,
proxy_type=proxy.type,
http_proxy_host=proxy.address,
http_proxy_port=proxy.port,