microsoft/BotFramework-DirectLineJS

While sending attachment, activity API was not triggering using botframework-directlinejs

Mahalakshmi-KJ opened this issue · 2 comments

While sending attachment, activity API was not triggering. If i removed the attachments the API is triggering. How to fix this?

  directline
            .postActivity({
              type: "message",
              text: "Testing",
              attachments: [
                {
                  contentType: "image/png",
                  contentUrl: attachment.uploadedFiles[0],
                },
              ],
              value: {
                eventType: "customEvent",
                eventProperties: {
                  conversation_id:""
                  user_id: ""
                },
              },
              from: {
                id: "",
                name: "",
                role: "agent",
              },
            })

@Mahalakshmi-KJ - If you are wanting to send an attachment, you will want to use the postMessageWithAttachment() method.

Closing as resolved.