I have a bot that includes a capability to have a messaging extensions feature. I have followed an example here. But instead of card view I used embedded web view to show my custom UI (which is a react app hosted in S3)
This is the code I used to open up the message extension preview:
handleTeamsMessagingExtensionFetchTask(context, action) {
const url = process.env.POPUP_VIEW_URL;
return {
task: {
type: 'continue',
value: {
url: url,
fallbackUrl: url,
width: 680,
height: 400,
title: 'Feedback & praise',
},
},
};
}
I tried to find an example/documentation on how the bot can receive the request from the UI when the user clicks the Submit request button but cannot find it so far. I looked at this this, but it uses an adaptive card example.
I wonder if there's an example from the documentation for embedded webview? I also thought just to have an API call when the user clicks the button, but still confuse on how to close the preview window after the API call return success.
