err-backend-mattermost icon indicating copy to clipboard operation
err-backend-mattermost copied to clipboard

Support for Stream

Open inkhey opened this issue 8 years ago • 3 comments

Support theses errbots methods with mattermost backend : http://errbot.io/en/latest/user_guide/plugin_development/streams.html?highlight=streams#sending-a-file-to-a-user-or-a-room

This link may help : https://github.com/mattermost/mattermost-api-reference/blob/master/v4/source/files.yaml

inkhey avatar Sep 27 '17 14:09 inkhey

Thanks, you pointed out a bug in my mattermostdriver by creating this bug btw :-D

Do I understand you correctly, you want to be able to send files to errbot? Example scenario: User 1 uploads an image to mattermost. User 2 makes an errbot command like !send_file_to_bot myFileID The bot makes an api request get_files and receives the file as binary

Is that correct?

Vaelor avatar Sep 27 '17 15:09 Vaelor

Not really. I'm thinking about a errbot that is able to send itself a file through send_stream_request() in mattermost. But support for callback_stream() may be cool as well .

inkhey avatar Sep 27 '17 15:09 inkhey

@Vaelor I checked a bit more about callback_stream() . It's look like in some protocol, they may be a callback or something like that each time a person upload into this protocol a file.

Example scenario : User 1 upload an image to mattermost The bot received the information with callback_stream() and upload the image somewhere else.

I don't know if this one (the callback) is possible in mattermost. I tried to find the slack backend implementation but i don't find it.

However send_stream_request() is working with Slack backend .

inkhey avatar Sep 27 '17 17:09 inkhey