We found this documentation explaining how to intercept messages in bot framework v3: https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-middleware?view=azure-bot-service-3.0
We want to do exactly that, only in v4 of the bot framework.
We could not find documentation for intercepting messages for bot framework v4 here: https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0
Is there a way to intercept the messages in bot framework v4, so we can log them?
We do already log the user messages in the OnMessageActivityAsync method. So we only need to log the messages that are sent from the bot to the user.
Thanks in advance.