Rocket.chat: Incoming WebHook improvment

Created on 8 Mar 2016  路  3Comments  路  Source: RocketChat/Rocket.Chat

Your Rocket.Chat version: 0.21

This issue may not be an issue. Could just be lack of information.

Is it possible to do a webhook that can post in multiple channels.

Use Case:
Lets say I have 50 channels and want to post individually to them from an external source.

As I understand today i would today need to create 50 webhooks and to be able to in them all.
And as soon i add a channel i would need to create a new webhook.

This will be a pain to administrate.

Is there anyway to create a webhook where you could specify the #channel

Hope you understand
Mathias

Most helpful comment

Hi @lunitic, you always can override the channel via webhook, so your external service can define where will post the message.

{
  "text": "Response text",
  "channel": "#general", // <-- custom channel
  "attachments": [
    {
      "title": "Rocket.Chat",
      "title_link": "https://rocket.chat",
      "text": "Rocket.Chat, the best open source chat",
      "image_url": "https://rocket.chat/images/mockup.png",
      "color": "#764FA5"
    }
}

All 3 comments

Hi @lunitic, you always can override the channel via webhook, so your external service can define where will post the message.

{
  "text": "Response text",
  "channel": "#general", // <-- custom channel
  "attachments": [
    {
      "title": "Rocket.Chat",
      "title_link": "https://rocket.chat",
      "text": "Rocket.Chat, the best open source chat",
      "image_url": "https://rocket.chat/images/mockup.png",
      "color": "#764FA5"
    }
}

It's also possible to pass via GET param to the hook

Is this working right now? I'm testing with the latest version (v0.65.1) and I can't override the channel defined in the webhook.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danpospisil picture danpospisil  路  3Comments

designgurudotorg picture designgurudotorg  路  3Comments

ghost picture ghost  路  3Comments

sta-szek picture sta-szek  路  3Comments

engelgabriel picture engelgabriel  路  3Comments