I'm trying to use a Slack webhook to notify a channel about a csv file for that day as well as post a link to it to attach. https://api.slack.com/docs/message-attachments doesn't use any examples of actual attachments and only includes links. I'm wondering if its even possible to send a csv file that my code is generating and attaching it from its path via os.path.basename(csvfile)
I'm trying use the format thats demonstrated here: https://gist.github.com/devStepsize/b1b795309a217d24566dcc0ad136f784 but am not sure if this allows for actual file attachments. So, I'd appreciate any help/direction in this matter. Is it even possible to send file attachments via a Slack webhook and if so, how should one go about doing so?