-, '*:notification' triggerAction, , , :
bot.dialog('*:notification', [
function (session, args) {
builder.Prompts.text(session, args)
},
function (session, results) {
logger.info('Results', results)
}]).triggerAction({matches: /^notification/i});
DL :
method:'post',
url:'conversations/' + conversationId + '/activities',
headers:{
'Authorization': 'Bearer' + token
}
body:{
type:'message',
from: {
"id": "1234",
"firstname": "fname",
"lastname": "lname"
},
text: 'notification',
textFormat: 'plain'
}