Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Broid-Slack support message formatting #148

Open
ShinyChang opened this issue May 20, 2017 · 2 comments
Open

Broid-Slack support message formatting #148

ShinyChang opened this issue May 20, 2017 · 2 comments

Comments

@ShinyChang
Copy link

Overview

  • What project is this issue for?: broid-slack
  • Is this a bug, security, feature request, or feedback: feature

Details

Broid-Slack is awesome, but I can not do advance things with broid-slack.
For example, I can not send custom attachment with below format:

{
    "text": "I am a test message http://slack.com",
    "attachments": [
        {
            "text": "And here’s an attachment!"
        }
    ]
}

reference: https://api.slack.com/docs/messages/builder

do you have any plan to support message formatting?

@killix
Copy link
Collaborator

killix commented May 23, 2017

Did you try something like that:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Create",
  "generator": {
    "id": "f6e92eb6-f69e-4eae-8158-06613461cf3a",
    "type": "Service",
    "name": "slack"
  },
  "object": {
    "type": "Note",
    "content": "I am a test message http://slack.com",
    "attachment": [{
        "type": "Image",
        "content": "And here’s an attachment description!",
        "name": "And here’s an attachment title!",
        "url": "And here’s an attachment!"
    }]
  },
  "to": {
    "type": "Group",
    "id": "C1L7YRBLG"
  }
}

@ShinyChang
Copy link
Author

I tried this and it will works. But it shows error if no attachment type.

I'd like to display some message like below
image

It looks like impossible in current version. (if type not in Image/Button/Video)

@dustinblackman dustinblackman removed their assignment Jun 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants