简体   繁体   English

是否可以在 MS Teams 机器人中拥有特定于国家/地区的命令列表?

[英]Is it possible to have country specific Command Lists in MS Teams bot?

We have a bot available in MS Teams.我们在 MS Teams 中有一个可用的机器人。 The bot is available for Enterprise US and Canada users.该机器人适用于美国和加拿大企业用户。 We are implementing Command Lists in the bot.我们正在机器人中实现命令列表。 We are maintaining separate JSON file for EN-US and FR-CA cultures.我们正在为 EN-US 和 FR-CA 文化维护单独的 JSON 文件。 Is there any way to implement the command list only for US users(ie for EN-US)?有没有办法只为美国用户(即 EN-US)实施命令列表?

Kindly Suggest.请建议。

You can use different country specific JSON files to achieve so.您可以使用不同国家/地区特定的 JSON 文件来实现。 Please refer below link: https://github.com/OfficeDev/microsoft-teams-apps-faqplus/tree/master/Manifest/EndUser请参考以下链接: https ://github.com/OfficeDev/microsoft-teams-apps-faqplus/tree/master/Manifest/EndUser

For example if you have 4 bot commands for en-US and 2 for fr-CA.例如,如果您有 4 个用于 en-US 的机器人命令和 2 个用于 fr-CA 的机器人命令。 When you will change the language from en-US to fr-CA, it will show you remaining/missing two commands in default language(for eg. en-US) apart from those two fr-CA commands.当您将语言从 en-US 更改为 fr-CA 时,除了这两个 fr-CA 命令之外,它将显示您在默认语言(例如 en-US)中剩余/缺少的两个命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM