-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Sending files on slack #28
Comments
Currently, Jbot supports Slack's RTM API, Slash Commands and webhooks and I don't think RTM API has upload file capability. The Slack web API do have. |
You can write a |
@ramswaroop I didn't get it, can u explain how to send a file as Reply message for particular user. Because if i am using files.upload to upload the file, the file is private without channel. How i can send reply message as File by bot |
@laxman954 I'm using the Meteoroid library to post files to Slack: public void postFileToSlack(Event event, File file) throws IOException {
okhttp3.Response response = new Meteoroid.Builder()
.token("YOUR-TOKEN")
.channels(event.getChannelId())
.uploadFile(file)
.build()
.post();
response.close();
} You get the channel from the Event object, and if the conversation started in a private conversation, then that's what the |
Hii, is there some update about the upload of files? thanks |
I'm trying to import Meteoroid library using maven but the dependecy generate an error |
can you please assign it to me , would like to contribute |
Do you have an example for sending files (like pdf) over slack.
The text was updated successfully, but these errors were encountered: