如果没有指定通道名,无法在任何通道或用户上发送文件


Unable to send a file on any of the channels or users without specifying the channel name

通过curl命令在Slack上上传文件时,是否需要指定通道名?由于我希望将该命令用于任何通道或任何用户名,请建议!

我正在使用curl命令-

curl -F file=@'$filename' -F channels=''-F token='xoxp-*********' 'https://slack.com/api/files.upload'  ` 

这不是必需的,但是它是可选的,并且支持通道目标列表。有关这些文件的文档请参阅此处。上传方法。