Skip to content

HSM can not include components #128

@ymmooot

Description

@ymmooot

Hi, I would like to send HSM having components.
The raw json is like below.

{
  "to": "{number}",
  "from": "{channel}",
  "type": "hsm",
  "content": {
    "hsm": {
      "namespace": "{namespace},
      "templateName": "{template_name}",
      "language": {
        "code": "id"
      },
      "components": [
        {
          "type": "body",
          "parameters": [
            {
              "type": "text",
              "text": "some text here"
            },
            {
              "type": "button",
              "sub_type": "url",
              "index": 0,
              "parameters": [
                {
                  "type": "text",
                  "text": "button text"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}

However, conversation.HSM type does not seem to have a way to set the components.
How to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions