-
Notifications
You must be signed in to change notification settings - Fork 67
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 new Buttons api #29
Comments
i tried emulating that with putting json as text into slack::chat::PostMessageRequest::attachments but i'm unsure how this is supposed to work with the legacy api "Darn – that didn’t work. Only Slack Apps can add interactive elements to messages. Manage your apps here" |
Yes as the docs state it requires you are an app not just a bot and it requires an interactive message, which can only be created under certain circumstances. |
and you can't be an app without using the new oauth based api as far as i understand, correct? |
https://api.slack.com/internal-integrations Yea but they made it much easier to use for a simple internal app |
@dten care to share how you're doing that? i couldnt figure it out with slack-rs |
I didn't get very far, but here's an example. It doesn't actually use anything from slack-rs since it doesn't provide the types required yet. The bot associated with the app uses slack-rs but the slash commands I didn't complete :)
|
They've made it so you can added buttons to messages that come from Apps
https://api.slack.com/docs/message-buttons
Mostly means some changes to attachments
The text was updated successfully, but these errors were encountered: