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

Set up incoming webhook for direct messaging #50

Closed
heyheyjp opened this issue Aug 2, 2016 · 6 comments
Closed

Set up incoming webhook for direct messaging #50

heyheyjp opened this issue Aug 2, 2016 · 6 comments
Assignees
Labels
Milestone

Comments

@heyheyjp
Copy link
Collaborator

heyheyjp commented Aug 2, 2016

@prattsj commented on Tue Aug 02 2016

Fortunately, we won't have to wade in any real Meteor/Rocket.Chat 💩 to get it done. Found sufficient (though unfortunately, undocumented) support already built into RC for sending direct messages through the API.

Setup:

  1. Simple webhook config

    screen shot 2016-08-02 at 12 06 26 am
  2. Simple API call

    screen shot 2016-08-02 at 12 08 28 am
  3. Et voila...direct messages

    screen shot 2016-08-02 at 12 09 02 am
@jeffreywescott
Copy link

I'm a bit nervous about using #general as the fallback for something that is primarily intended for direct messages. I think I'd rather things error-out than mistakenly post to #general. WDYT?

@heyheyjp
Copy link
Collaborator Author

heyheyjp commented Aug 2, 2016

Totes. See my note in the image about using something safer. I bet we can set up a private channel and feed anything that falls through to that?

@heyheyjp
Copy link
Collaborator Author

heyheyjp commented Aug 2, 2016

When we switch this to being handled by our custom namespaced API endpoints, I like the idea of just erroring out.

@jeffreywescott
Copy link

Ah -- I misunderstood you ... I thought you were suggesting that #general was safe. Sorry.

@jeffreywescott
Copy link

FWIW, anyone with the backoffice role in IDM automatically gets the admin role in Rocket.Chat and should be able to set this up.

@heyheyjp heyheyjp self-assigned this Aug 5, 2016
@heyheyjp
Copy link
Collaborator Author

heyheyjp commented Aug 5, 2016

Complete.

screen shot 2016-08-05 at 11 12 13 am

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

No branches or pull requests

2 participants