aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-02-06 13:29:12 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2022-09-18 16:36:55 +0200
commit55cc97e60f84b3a9ac4d4397f4f641d1a104f718 (patch)
tree35678b0e7ff1bcbe8003d8b5885dfbdc8d48f0d2 /wee_slack.py
parent81b1984c2f1d1513d0a6d1d1eed9b3dcef33009f (diff)
downloadwee-slack-55cc97e60f84b3a9ac4d4397f4f641d1a104f718.tar.gz
Use SlackRequest options in file download
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4d0ff63..da61ad7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4116,11 +4116,12 @@ def download_files(message_json, channel):
for fileout in fileout_iter(os.path.join(download_location, filename)):
if os.path.isfile(fileout):
continue
+ curl_options = SlackRequest(channel.team, "").options()
w.hook_process_hashtable(
"url:" + f["url_private"],
{
+ **curl_options,
"file_out": fileout,
- "httpheader": "Authorization: Bearer " + channel.team.token,
},
config.slack_timeout,
"",