首页 > 解决方案 > 刷新 Teams Bot 图标 + 名称

问题描述

我更新了我的 Bot Framework Bot 的名称 + 图标。在 Teams 中,我看不到更新它的方法。我记得必须手动删除程序文件中的一些缓存文件夹,但想知道是否有更简单的方法(来自 Web 的 Teams 中的 + bot 与我的本地缓存和也那个不刷新)。

如何在 Teams 桌面 + Web 中刷新我的机器人名称 + 图标?

标签: botframeworkmicrosoft-teams

解决方案


不幸的是,MS Teams 没有提供“刷新”机器人图标的简单方法,但它是可行的。首先要意识到图标有两个来源:1) 来自 Azure 中的机器人设置,2) 用于加载自定义应用程序的应用程序清单。(我无法通过 Teams 应用商店测试安装,但我猜想它会产生与加载自定义应用类似的结果。)

在测试中,每个来源似乎都会影响 Teams 应用程序的不同部分。如果在 Azure 的机器人设置中更新你的机器人图标,这将更新对话机器人图标和在你键入联系人姓名时显示的机器人图标。不会更新机器人的“个人资料”和/或应用图像。这些必须从新清单中更新。

用户可以卸载并重新安装自定义加载的应用程序(bot),但是只需在当前 bot 之上安装更新的清单而不卸载似乎工作得很好。

最后,在这两种情况下,用户都需要清除他们团队的缓存文件。以下说明解释了如何在 Windows 10 机器上轻松完成此操作(原始帖子位于此处)。请原谅格式……markdown 对我的字母和项目符号不太好。

If you want to clear MS Teams cache, you could refer to the following ways:

1.  Fully exit the Microsoft Teams desktop client. To do this, either right click Teams from the Icon Tray and select ‘Quit’, or run Task Manager and fully kill the process.
2.  Go to File Explorer, and type in %appdata%\Microsoft\teams.
3.  Once in the directory, you’ll see a few of the following folders:

 a.  From within ‘Application Cache’, go to Cache and delete any of the files in the Cache location.
    *   %appdata%\Microsoft\teams\application cache\cache

 b.  From within ‘Blob_storage’, delete any files that are located in here if any.
    *   %appdata%\Microsoft\teams\blob_storage

 c.  From within ‘Cache’, delete all files.
    *   %appdata%\Microsoft\teams\Cache

 d.  From within ‘databases’, delete all files.
    *   %appdata%\Microsoft\teams\databases

 e.  From within ‘GPUCache’, delete all files.
    *   %appdata%\Microsoft\teams\GPUcache

 f.  From within ‘IndexedDB’, delete the .db file
    *   %appdata%\Microsoft\teams\IndexedDB

 g.  From within ‘Local Storage’, delete all files.
    *   %appdata%\Microsoft\teams\Local Storage

 h.  Lastly, from within ‘tmp’, delete any file.
    *   %appdata%\Microsoft\teams\tmp

4. Once finally done clearing, you can now restart Teams from your local desktop and all cache will be cleared from the desktop app.

通过这种方式,我已经能够更新机器人图标。不是一个糟糕的过程,但肯定不是一个友好的用户体验。

希望有帮助!


推荐阅读