I’m trying to make a slash command that posts an ephemeral message with interactive buttons that result in updating the original message. The documentation says this should be possible: https://docs.mattermost.com/developer/interactive-messages.html
In specific, it says:
The integration can respond with an update to the original post, or with an ephemeral message:
{ "update": { "message": "Updated!" }, "ephemeral_text": "You updated the post!" }
My problem is that this seems to just be a snippet of a valid response. I can post the original message, I get the request, and no matter how I respond to the request, nothing happens. I’ve tried responding with the exact block above and multiple variations on it, and it does nothing. The documentation links to the Matterpoll plugin as an example, which isn’t really useful to me because I’m not using Go, I’m just writing a CGI script that returns a JSON-formatted response.
Has anybody gotten this working? If so, could you share example JSON requests/responses that produce the desired behavior? I really just need to know what an action response is supposed to look like and what the valid options are.
Thanks in advance!