scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 394 forks source link

Ability to upload files based on "content", not "file" from filesystem #108

Closed tehranian closed 6 years ago

tehranian commented 8 years ago

Via https://api.slack.com/methods/files.upload

It'd be great if one could upload a text snippet via the "content" parameter of the upload API, and not have to read a file from disk. Alternatively, if the API supported reading from a file handle, then one could use https://docs.python.org/2/library/stringio.html or a filesystem file, as needed.

willguxy commented 6 years ago

Looks that this one is implemented already https://github.com/lins05/slackbot/blob/9063de0b179acfe90b66903e5cef6a360081aaab/slackbot/slackclient.py#L132

should the issue ticket be closed?

tehranian commented 6 years ago

Oh nice, I would agree. I think this issue can be closed.