首页 > 解决方案 > 如何在 Teams Manifest 中的 inputType 'choiceset' 上设置硬编码值?

问题描述

我想知道是否有一种解决方法可以在 MS Teams Manifest 中为输入类型选择集设置选项

您可以在 MS Teams 清单文件上设置的示例。

 {
    "name": "options",
    "title": "Options",
    "description": "Demo Options",
    "inputType": "choiceset"
 }

标签: botframeworkmicrosoft-teams

解决方案


我还没有在互联网上找到答案,但是当我试图操纵 Teams Manifest 时我发现了答案,我发现有一个 Intillecense 可供选择,它是一个数组。

这是示例清单 JSON。

{
    "name": "option",
    "title": "opption",
    "description": "Demo Option",
    "inputType": "choiceset",
    "choices": [
       {
          "title": "option1",
          "value": "1"
       },
       {
          "title": "option2",
          "value": "2"
       }
    ]
}

推荐阅读