Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Allow Link formatting via chat.postMessage #49

Closed
wants to merge 2 commits into from

Conversation

ewr
Copy link

@ewr ewr commented Aug 27, 2015

As discussed in #36, Slack's RTM messages don't support link formatting or complex messages such as those with attachments.

Inspired by a quick fork @jaisonerick did a few days ago, this branch sends any message that a) is not a string or b) contains <.*> to the API's chat.postMessage endpoint.

It seems to work well for the simple case of link formatting, but I'm open to any thoughts on whether there's a different way to do the split.

jaisonerick and others added 2 commits August 23, 2015 15:36
Use the API to send messages that a) aren't strings (typically an
object with attachments, etc) or b) match `\<.*\>` (link formatting)
@jimmycuadra
Copy link
Contributor

Thank you for the PR! I'm going to be implementing adapter-specific functionality in a different way, but it's coming very soon.

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

Successfully merging this pull request may close these issues.

3 participants