0

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
  "manifestVersion": "1.5",
  "version": "1.0.0",
  "id": "BOT-ID",
  "packageName": "com.microsoft.teams.appName",
  "developer": {
    "name": "dev",
    "websiteUrl": "https://secure.dev.com",
    "privacyUrl": "https://secure.dev.com/privacy",
    "termsOfUseUrl": "https://secure.dev.com/termsofuse"
  },
  "icons": {
    "color": "icon-color.png",
    "outline": "icon-outline.png"
  },
  "name": {
    "short": "My Bot",
    "full": "My Helpdesk Bot"
  },
  "description": {
    "short": "My Bot App",
    "full": "My bot to create, update tickets and get helpdesk notifications"
  },
  "accentColor": "#FFFFFF",
  "bots": [
    {
      "botId": "BOT-ID",
      "scopes": ["team"],
      "supportsFiles": false,
      "isNotificationOnly": false,
      "commandLists": []
    }
  ],
  "composeExtensions": [
    {
      "botId": "BOT-ID",
      "commands": [
        {
          "id": "createTicket",
          "type": "action",
          "description": "Command to run action to create a Ticket from Compose Box",
          "title": "Create Ticket",
          "context": ["message", "compose"],
          "fetchTask": true,
          "initialRun": true
        },
        {
          "id": "addComment",
          "type": "action",
          "description": "Add comment on My app",
          "title": "Add Comment",
          "context": ["message"]
        }
      ]
    }
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "token.botframework.com",
    "*.ngrok.io"
  ]
}

我只在团队频道中安装了我的 MS Teams 应用程序的一个实例,但它显示了两次命令。

我在我的应用程序中添加了机器人和消息扩展,当我将机器人范围设置为“个人”时,它只显示单个命令,但是当我将机器人的范围设置为“团队”时,它会显示两次命令。

4

1 回答 1

0

我们尝试使用共享的相同清单文件最终重现该问题。但我们这边一切正常。我们没有收到任何重复的命令。附上截图供参考:

团队频道: 在此处输入图像描述 在此处输入图像描述

个人范围: 在此处输入图像描述 在此处输入图像描述

仅供参考,我们已经在 Microsoft Teams Web 客户端和桌面客户端(Microsoft Teams 版本 1.5.00.4767)中进行了测试

清单 JSON:

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
  "manifestVersion": "1.5",
  "version": "1.2",
  "id": "f5ff2094-1b61-49dc-9c72-41d6593ca8c7",
  "packageName": "com.microsoft.teams.samples",
  "developer": {
    "name": "Microsoft",
    "websiteUrl": "https://dev.botframework.com",
    "privacyUrl": "https://privacy.microsoft.com",
    "termsOfUseUrl": "https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx"
  },
  "name": {
    "short": "Action Messaging Extension-PSD",
    "full": "Microsoft Teams Action Based Messaging Extension-PSD"
  },
  "description": {
    "short": "Sample demonstrating an Action Based Messaging Extension",
    "full": "Sample Action Messaging Extension built with the Bot Builder SDK"
  },
  "icons": {
    "outline": "icon-outline.png",
    "color": "icon-color.png"
  },
  "accentColor": "#FFFFFF",
  "bots": [
    {
      "botId": "xxxxxxxxx",
      "needsChannelSelector": false,
      "isNotificationOnly": false,
      "scopes": [
        "team",
        "personal",
        "groupchat"
      ]
    }
  ],
  "composeExtensions": [
    {
      "botId": "xxxxxxxxxxxxx",
      "commands": [
        {
          "id": "createTicket",
          "type": "action",
          "description": "Command to run action to create a Ticket from Compose Box",
          "title": "Create Ticket",
          "context": ["message", "compose"],
          "fetchTask": true,
          "initialRun": true
        },
        {
          "id": "addComment",
          "type": "action",
          "description": "Add comment on My app",
          "title": "Add Comment",
          "context": ["message"]
        }
      ]
    }
  ],
  "permissions": [
    "identity"
  ],
  "validDomains": [
    "*.ngrok.io"
  ]
}
于 2022-02-23T06:11:48.180 回答