Disable button once clicked MS bot framework

一世执手 提交于 2020-05-29 07:06:00

问题


I am creating chatbot application using MS bot framework. In that, I want to disable both buttons once Yes or No is clicked.


回答1:


Sorry but the webchat (and other channels) does not support what you want to do, even if it would be useful for many cases.

There is a sort of workaround if you really need to have buttons that cannot be used: use SuggestedActions (see doc here), it will look like the following:

Once clicked the buttons disappear.




回答2:


If you are using facebook messenger you can use quick replies. They will disappear after interactions. https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies

Microsoft.Bot.Builder.ConnectorEx.FacebookQuickReply


来源:https://stackoverflow.com/questions/48401826/disable-button-once-clicked-ms-bot-framework

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