Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Stream #31

Open
inkhey opened this issue Sep 27, 2017 · 3 comments
Open

Support for Stream #31

inkhey opened this issue Sep 27, 2017 · 3 comments

Comments

@inkhey
Copy link

inkhey commented Sep 27, 2017

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

@Vaelor
Copy link
Collaborator

Vaelor commented Sep 27, 2017

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?

@inkhey
Copy link
Author

inkhey commented Sep 27, 2017

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
Copy link
Author

inkhey commented Sep 27, 2017

@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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants