A JavaScript framework to build Slack apps in a flash with the latest platform features. Read the getting started guide to set-up and run your first Bolt app. To listen to messages that your app has access to receive, you can use the message() method which filters out events that aren’t of type message. message() accepts an optional pattern parameter of type string or RegExp object which filters out any messages that don’t match the pattern. A RegExp pattern can be used instead of a string for more granular matching. Within your listener function, say() is available whenever there is an associated conversation (for example, a conversation where the event or action which triggered the listener occurred). say() accepts a string to post simple messages and JSON payloads to send more complex messages. The message payload you pass in will be sent to the associated conversation.
Features
- Send a message with blocks
- You can listen to any Events API event
- Use the Web API
- Your Bolt app also has a top-level app.client which you can manually pass the token parameter
- Your app can listen to user actions like button clicks
- Actions can be filtered on an action_id of type string or RegExp object