问题
Does the iframe embed has any configuration / support to disable the button ?
回答1:
The embed web chat doesn't have direct configuration to disable the upload botton and functions. However, the embed web chat is built by the project BotFramework-WebChat, so you can modify the source code, and compile into your own version to achieve your requirement.
- Clone the repo https://github.com/Microsoft/BotFramework-WebChat to your local work space, run
npm install
to install all the node.js dependencies. - Comment the code section from line 114 to 132 at /src/Shell.tsx.
- run
npm run build
to compile the source code to javascript file. - follow Easy: In your non-React website, run Web Chat inline section leverage your own js file in your website.
来源:https://stackoverflow.com/questions/47615560/remove-image-upload-button-in-microsoft-botframework-iframe