0

大家好,我一直在尝试默认启用我的机器人,该机器人需要直接安装到 Microsoft 团队的频道。以下是我的应用清单在团队中的架构

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",
    "manifestVersion": "1.11",
    "version": "1.6",
    "id": "xxxx-xxxxxx-xxxxxx-xxxxx",
    "packageName": "com.xxxxx.microsoftteams.jira",
    "developer": {
        "name": "xxxxxxx",
        "websiteUrl": "https://www.xxxxx.com",
        "privacyUrl": "https://www.xxxxx.com/privacy",
        "termsOfUseUrl": "https://www.xxxxx.com/license",
        "mpnId": "xxxxx"
    },
    "icons": {
        "color": "color.png",
        "outline": "outline.png"
    },
    "name": {
        "short": "xxxx",
        "full": "xxxx"
    },
    "description": {
        "short": "xxxxx",
        "full": "xxxxxx"
    },
    "accentColor": "#FFFFFF",
    "configurableTabs": [],
    "staticTabs": [
        {
            "entityId": "conversations",
            "scopes": [
                "personal"
            ]
        },
        {
            "entityId": "about",
            "scopes": [
                "personal"
            ]
        },
        {
            "entityId": "xx",
            "name": "xx",
            "scopes": [
                "personal"
            ]
        }
    ],
    "bots": [
        {
            "botId": "xxx-xxxx-xxxx-xxxx",
            "scopes": [
                "personal",
                "team",
                "groupchat"
            ],
            "supportsFiles": false,
            "isNotificationOnly": false
        }
    ],
    "composeExtensions": [
        {
            "botId": "xxx-xxxx-xxxx-xxxx",
            "canUpdateConfiguration": false,
            "commands": [
                {
                    "id": "search",
                    "type": "query",
                    "title": "Search",
                    "description": "Search for issues in xxx",
                    "initialRun": true,
                    "fetchTask": false,
                    "context": [
                        "commandBox",
                        "compose"
                    ],
                    "parameters": [
                        {
                            "name": "search",
                            "title": "Search",
                            "description": "Search",
                            "inputType": "text"
                        }
                    ]
                }
            ]
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "defaultInstallScope": "team",
    "defaultGroupCapability": {
        "meetings": "bot",
        "team": "bot",
        "groupchat": "bot"
    },
    "validDomains": [
        "xxx",
    ],
    "webApplicationInfo": {
        "id": "xxx-xxxx-xxxx",
        "resource": "http://"
    }
}

因此,如果您仔细查看,您会发现我已添加defaultInstallScope以将安装路由到团队,并且defaultGroupCapability有团队指定它应该将机器人安装到团队。但它不起作用。请问有人知道这件事吗?

4

1 回答 1

0

defaultGroupCapability 提供将添加到团队、群聊或会议的默认功能。选择选项卡、机器人或连接器作为应用的默认功能,但您必须确保已在应用定义中提供所选功能。您可以只检查一次吗?或共享错误日志?

参考文档:-为您的 Microsoft Teams 应用配置默认安装选项

于 2022-02-23T08:24:14.610 回答