[英]Can i refresh Chat history in Teams #Bot framework
Is there any way to refresh/clear BOT chat history and start new conversation in MS Teams.有什么方法可以刷新/清除BOT聊天记录并在 MS Teams 中开始新的对话。 If Yes please let me know how to do it.如果是,请让我知道该怎么做。
There is (as of the posting of this answer) no way to delete teams chat history, so there is no way to clear the previous messages of a bot from the teams client. (截至发布此答案时)无法删除团队聊天历史记录,因此无法从团队客户端清除机器人的先前消息。 There are ways to clear a bot's conversation state, but as the bot's Microsoft app ID is tied to a Teams app ID as soon as you add the channel, the messages displayed on the teams chat window are there to stay no matter how you handle your bot's state/history storage.有一些方法可以清除机器人的对话 state,但由于机器人的 Microsoft 应用程序 ID 在您添加频道后立即与团队应用程序 ID 相关联,因此无论您如何处理您的机器人的状态/历史存储。
The only work around for this is to remove the bot from Teams entirely, and redeploy it using a new Bot Channels Registration/Web App bot, which doesn't, per se, delete the history so much as create a totally new bot.解决此问题的唯一方法是从 Teams 中完全删除机器人,并使用新的 Bot Channels Registration/Web App 机器人重新部署它,它本身并不会删除历史记录,而是创建一个全新的机器人。
For reference: https://support.office.com/en-us/article/delete-a-chat-in-teams-da6d87ed-59bc-4407-9291-95ee193f8344供参考: https://support.office.com/en-us/article/delete-a-chat-in-teams-da6d87ed-59bc-4407-9291-95ee193f8344
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.