I am working on some Mattermost integrations. Therefore I have some questions:
When will interactive message buttons be a available for ephemeral messages? I need them to let the user choose and then post. But all others should not see the message where the current user makes a call.
Is it possible to open a link silently? Like: I click on the link and (for the user) nothing happens, but the link will be called in background.
We don’t have any concrete plans for it at the moment. I understand there are a few good reasons you might want to do this, and I think it would be nice to have, but it just hasn’t been prioritized yet.
Can you explain more specifically what you would be wanting to do here and why? Are you wanting to make an HTTP request directly from the user’s browser?
I just want to let the user pick from several options in a ephemeral message and then replace it with a message visible to all.
I would display several options, users clicks one, call to the link in background, service posts via webhook.
This would also work to implement Giphys (finally) in a good way. The current solution is just not satisfying. Lots of our people are complaining that they don’t have giphys anymore since we moved from slack. But I don’t see a way to implement it.
At the end I implemented a slash command, opening a browser window, letting the user pick a giphy, a webhook posting it back to the channel. This gives some choices for the users but it’s still a bad implementation.
With epemeral messages and buttons I can just let the user loop through updates untill he picks a giphy, then replace the message.
Edit: Giphy is the big thing, everybody wants it, can’t understand why there is no native implementation for it. Have a look at Microsoft Teams, they got it right, you can even make your own memes right in Teams.
@codehobbit
i’m trying to do exactly the same for my team now, since i know it’s optional in Slack i tried to the same over here, but got stuck since buttons are not available for ephemeral message
Are you trying to implement gifs? If yes, I have a solution that works with preview and selection of several gifs. I would need to upload it to github, in case someone is interested. Or I can deploy it somewhere, with some minor changes it should work for several users.
Yes i’m trying to implement gif slash command, my approach was sending the user ephemeral message with gif as a response and 2 buttons one with the text “random” (to get a different gif), and one button for posting ur selection.
But then i realized buttons are working only at “in_channel” response.
I saw u wrote something about opening new window and then selecting the GIF but it seems to me like a bad user experience for gif selection, am i write ?
anyway i would love to see a visual solution of how u implemented it, or a better explanation.
Hi @michaelAkrawi Following up on this - did you receive assistance to this elsewhere or do you still need help with this? If you still need assistance please let me know and I will ask one of our engineers to take a look.
The only change I had to make from the documentation was the addition of the id fields to the actions of the attachment.
I created a ticket to look at updating it for ephemeral messages so you don’t have to include the id field, like you don’t have to for regular messages.