Comments (6)
Button clicks are not slack events - they are not provided by the RTM API.
Button clicks require a callback handler /URL which is out of scope for this library.
Please see the 'Responding to message actions' section of the doc: https://api.slack.com/docs/message-buttons
from java-slack-sdk.
Thanks for fast response
Will this option be someday in this library?
from java-slack-sdk.
I can't see that ever happening personally. It's out of scope because it isn't really something that can be included in a library. It would require a web server to receive the callbacks and each application has a different requirement for handling the button clicks.
Having said that, I don't run the project :) @seratch ?
from java-slack-sdk.
Right, I don't have any plans to do something.
from java-slack-sdk.
After 1.5 years, I've implemented some features to easily build a Slack App backend to handle the scenario discussed here. Actually, it's not possible to receive the event as an RTM events, but we can receive interactive messages on our side side.
Check the classes under this package. I've already started using these classes for my personal Slack apps.
For example, let's say a user clicks a button in a message made of BlockKit components. At the time, your Slack App backend receives a HTTP request from Slack Platform. The request body contains a payload which has the type block_actions
as below. You can use this class to bind the request body. Here is a simple example code.
- BlockKit document: https://api.slack.com/reference/messaging/block-elements
- Block examples
from java-slack-sdk.
Please allow me close this issue. Feel free to reopen this when you have something to discuss further here at any time.
from java-slack-sdk.
Related Issues (20)
- Use the slack huddle api HOT 1
- maven distro of slack-api-client imports okhttp v4.9.3. Should be v4.12.0. HOT 2
- How to un-register/re-register a message listener HOT 4
- Slack couldn't verify messages with *(bold) w/ Spring Boot HOT 1
- Message sent after file upload comes earlier than the file appears in the channel HOT 4
- ResponseMetadata missing in AdminInviteRequestsResponse HOT 2
- FileUploadV2 is breaking two useful features available in pervious version HOT 9
- entity.message is missing in Audit Logs API response HOT 1
- files.upload v2 method does not upload multiple files with full metadata HOT 5
- Slack API that allows me to call to install an app on a specific channel and remove an app on a specific channel HOT 7
- How do I respond to the url_verification event? HOT 2
- bolt-servlet implementation with dropwizard giving AppConfig ClassNotFound issue HOT 4
- Events Lag Issue HOT 4
- ImageElement.setImageBytes(Integer) HOT 2
- Can we use "Bot is typing..." feature via APIs? HOT 1
- SVG support for image block HOT 3
- Certain team ids getting 401 HTTP response from event subscription URL while others work HOT 2
- Slack files have inconsistent privacy when calling upload APIs on different platforms HOT 5
- Rich Text Block Mismatch in Java Class and Json Version HOT 2
- `public_url` is missing in `com.slack.api.model.Team` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-slack-sdk.