BotFramework-WebChat
BotFramework-WebChat copied to clipboard
Request improvement to intercept and modify/cancel messages
It would be great if we could intercept message sended from client to bot to modify or cancel them before there are sended to the bot.
Currently, I can only intercept message with directLine (directLine.activity$.subscribe(function (activity) { ... ) but I can't modify theses activities.
Can you tell me if this feature is already implemented. If no, have you planed to implement it ?
Thanks,
You can do this with client middleware. Have a look here.
I am using directline, botchat and botchat-es5.js library.
How can this middleware be created?