While sending attachment, activity API was not triggering using botframework-directlinejs
Mahalakshmi-KJ opened this issue · 2 comments
Mahalakshmi-KJ commented
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",
},
})
stevkan commented
@Mahalakshmi-KJ - If you are wanting to send an attachment, you will want to use the postMessageWithAttachment()
method.
stevkan commented
Closing as resolved.