Based on official documentation, files.upload used to send reports to slack will be deprecated soon.
And it seems like it is already the case.
$ curl -s -F "token=***" -F "file=test_alert.txt" -F "filename=test LMD slack" -F "channels=#********" -X POST https://slack.com/api/files.upload
{"ok":false,"error":"method_deprecated"}
Source:
|
slack_response=$($curl -s -F "token=$slack_token" -F "file=@$file" -F "filename=$slack_subj" -F "channels=$slack_channels" -X POST https://slack.com/api/files.upload | grep -oP '^{"ok":true') |