teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

不要な部分を削除

2021/12/28 09:54

投稿

seratch
seratch

スコア215

answer CHANGED
@@ -28,7 +28,7 @@
28
28
  response = requests.post(
29
29
  url="https://slack.com/api/files.upload",
30
30
  headers={"Authorization": f"Bearer {token}"},
31
- params={"channels": channel_ids, "token": token},
31
+ params={"channels": channel_ids},
32
32
  files={"file": f},
33
33
  )
34
34
  print(json.dumps(response.json(), indent=4, sort_keys=True))