You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
let response = {
'line': {
'type': 'image',
'originalContentUrl': 'https://vision.riverplus.com/wp-content/uploads/2020/01/qrcode.jpg',
'previewImageUrl': 'https://vision.riverplus.com/wp-content/uploads/2020/01/qrcode.jpg'
},
"facebook": {
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [
{
"title": "Hello world",
"image_url": "https://vision.riverplus.com/wp-content/uploads/2020/01/qrcode.jpg",
"subtitle": "sub title text",
}
]
}
}
}
}
agent.add(
new Payload(agent.UNSPECIFIED, response, {
rawPayload: true,
sendAsMessage: true,
})
);
agent.add("Select one");
This code will send only the text "Select one"
Need to change parameter agent.UNSPECIFIED to specific channel for example
agent.add(
new Payload('FACEBOOK', response, {
rawPayload: true,
sendAsMessage: true,
})
);
agent.add("Select one");
This code is working.
Question is. Why it doesn't work when using an agent.UNSPECIFIED?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
let response = {
'line': {
'type': 'image',
'originalContentUrl': 'https://vision.riverplus.com/wp-content/uploads/2020/01/qrcode.jpg',
'previewImageUrl': 'https://vision.riverplus.com/wp-content/uploads/2020/01/qrcode.jpg'
},
"facebook": {
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [
{
"title": "Hello world",
"image_url": "https://vision.riverplus.com/wp-content/uploads/2020/01/qrcode.jpg",
"subtitle": "sub title text",
}
]
}
}
}
}
agent.add(
new Payload(agent.UNSPECIFIED, response, {
rawPayload: true,
sendAsMessage: true,
})
);
agent.add("Select one");
This code will send only the text "Select one"
Need to change parameter agent.UNSPECIFIED to specific channel for example
agent.add(
new Payload('FACEBOOK', response, {
rawPayload: true,
sendAsMessage: true,
})
);
agent.add("Select one");
This code is working.
Question is. Why it doesn't work when using an agent.UNSPECIFIED?
The text was updated successfully, but these errors were encountered: