This is possible, but not in an obvious way.
bot.startConversation(message, function(err, convo) {
convo.ask({
text: "Here some pretext",
attachments: [{
"text": "More text",
"fallback": "Fallback text",
"callback_id": "Test",
"actions": [
{
"name": "yes",
"text": "Yes",
"value": "yes",
"type": "button",
},
{
"name": "no",
"text": "No",
"value": "no",
"type": "button",
}
]
}]
}, function(reply, convo) {
bot.replyInteractive(reply, "This text replaces the previous message");
convo.say("This is a regular message");
convo.next();
});
});
Note that replyInteractive()uses replyinstead message.
I know this is late, but I hope this helps someone.
source
share