Remove image upload button in Microsoft BotFramework iFrame

岁酱吖の 提交于 2020-01-13 19:29:29

问题


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.

  1. Clone the repo https://github.com/Microsoft/BotFramework-WebChat to your local work space, run npm install to install all the node.js dependencies.
  2. Comment the code section from line 114 to 132 at /src/Shell.tsx.
  3. run npm run build to compile the source code to javascript file.
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!