Skip to content
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

SlackRTMClient couldn't parse a message_changed message #41

Open
kryton opened this issue Dec 27, 2016 · 2 comments
Open

SlackRTMClient couldn't parse a message_changed message #41

kryton opened this issue Dec 27, 2016 · 2 comments

Comments

@kryton
Copy link
Contributor

kryton commented Dec 27, 2016

Hi.

when you respond to a button callback with

{
  "response_type": "ephemeral",
  "replace_original": true,
  "text": "Recieved the Test Callback."
}

it sends the following message

{
  "type":"message",
  "message":{
    "text":"Recieved the Test Callback.",
    "username":"CartBot",
    "bot_id":"xxxxx",
    "type":"message",
    "subtype":"bot_message",
    "ts":"1482868318.000021"
    },
    "subtype":"message_changed",
    "hidden":true,
    "channel":"xxxxxx",
    "previous_message":{
      "text":"Test","username":"CartBot",
      "bot_id":"B3J1YCD0A",
      "attachments":[
        {
          "callback_id":"code-123456",
          "fallback":"backup message: code-123456",
          "text":"Do you want to accept?","id":1,"actions":[
            {"id":"1","name":"accept","text":"Accept","type":"button","value":"","style":"primary"}
            ]
        }
        ],
      "type":"message","subtype":"bot_message","ts":"1482868318.000021"
    },
  "event_ts":"1482868321.886281",
  "ts":"1482868321.000022"
}

@mccartney
Copy link
Collaborator

Is it still the case?

@kryton
Copy link
Contributor Author

kryton commented Mar 13, 2018

honestly I don't know.. the code was for a POC, and I'm not sure where it is anymore.. feel free to close if you can't reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants