new(core.gbapp): New API endpoint.
This commit is contained in:
parent
e3614d65bc
commit
1507509066
1 changed files with 2 additions and 2 deletions
|
@ -1284,14 +1284,14 @@ export class DialogKeywords {
|
||||||
conversationId: conversation.conversationId,
|
conversationId: conversation.conversationId,
|
||||||
watermark: conversation.watermark
|
watermark: conversation.watermark
|
||||||
});
|
});
|
||||||
conversation.watermarkMap = response.obj.watermark;
|
conversation.watermark = response.obj.watermark;
|
||||||
let activities = response.obj.activities;
|
let activities = response.obj.activities;
|
||||||
|
|
||||||
if (activities && activities.length) {
|
if (activities && activities.length) {
|
||||||
activities = activities.filter(m => m.from.id === min.botId && m.type === 'message');
|
activities = activities.filter(m => m.from.id === min.botId && m.type === 'message');
|
||||||
if (activities.length) {
|
if (activities.length) {
|
||||||
activities.forEach(activity => {
|
activities.forEach(activity => {
|
||||||
messages.push({ text: activity.text });
|
messages.push( activity.text );
|
||||||
GBLogEx.info(min, `MESSAGE BOT answer from bot: ${activity.text}`);
|
GBLogEx.info(min, `MESSAGE BOT answer from bot: ${activity.text}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue