From 2e58c5ab860de81f6617beb6db35f4d6db1017a6 Mon Sep 17 00:00:00 2001 From: khanh Date: Sat, 29 Jun 2024 20:25:32 +0700 Subject: [PATCH] update not match message --- actions/Prompting.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/actions/Prompting.js b/actions/Prompting.js index 3d0b126..1916074 100644 --- a/actions/Prompting.js +++ b/actions/Prompting.js @@ -12,6 +12,7 @@ const { const { replaceData } = require('../utils/utils'); const { translate } = require('../services/translate'); const { predict } = require('../services/intent'); +const { CustomActivityTypes } = require('../classes/CustomActivityTypes'); const { ERROR_MESSAGE } = process.env; const PROMPTING_WATERFALL = 'PROMPTING_WATERFALL'; @@ -70,9 +71,11 @@ class Prompting extends ComponentDialog { language ); - await step.context.sendActivity( - replaceData({ text: notMatchMsg.message, data: variables }) - ); + await step.context.sendActivity({ + type: CustomActivityTypes.Message, + text: notMatchMsg.message, + channelData: {}, + }); } }