jbot icon indicating copy to clipboard operation
jbot copied to clipboard

RichMessage with reply method

Open ram-g-athreya opened this issue 8 years ago • 3 comments

Hi

Is there a way to use RichMessage with the bot's reply method? The example does not seem to deal with this. Basically I want to show a RichMessage as a response to a Text Message from the user.

Thanks

ram-g-athreya avatar Jul 08 '17 10:07 ram-g-athreya

Hi, I think Slack doesn't support RichMessage in RTM api but supports via its web api. You can see SlackSlashCommand.java inside jbot-example to get an idea on how to use it.

rampatra avatar Jul 11 '17 11:07 rampatra

I think it would help to be able to receive a message over RTM, and then reply over its web api by sending a new message over https://api.slack.com/methods/chat.postMessage.

rahulsom avatar Apr 29 '18 02:04 rahulsom

Yes @rahulsom, that would be nice. I shall work on the web api feature later as I am finding it hard to take out time for this now. Having said that, a PR is always welcome.

rampatra avatar Apr 29 '18 10:04 rampatra