将Microsoft机器人加载到 MS Teams 中有效,但我无法与机器人交互



我一直在使用.NET SDK为Microsoft团队开发一个机器人。以前,我毫不费力地将机器人加入团队并与之互动。我可以@mention团队内的机器人,我可以与它进行一对一的聊天。

最近,我更新了机器人和manifest.json,因此我将其从团队中删除并重新添加了它。该机器人成功地添加到了团队中,但是,我再也无法@mention,并且在先前存在的一对一中。我要输入到机器人的消息的文本字段已经消失。

有趣的是,如果我从团队中删除机器人并不重新添加机器人,我可以返回与它进行一对一的对话,并且发送消息的文本字段又回来了。

有人经历过这种行为,还是知道我缺少什么?提前致谢!

下面是我的manifest.json,识别文本已更换:

{
    "$schema": "https://statics.teams.microsoft.com/sdk/v1.2/manifest/MicrosoftTeams.schema.json",
    "manifestVersion": "1.2",
    "version": "1.1.2",
    "id": "appId",
    "packageName": "com.example.app",
    "developer": {
        "name": "name",
        "websiteUrl": "https://example.com/",
        "privacyUrl": "https://example.com/privacy",
        "termsOfUseUrl": "https://example.com/terms"
    },
    "name": {
        "short": "shortName",
        "full": "this is the full name"
    },
    "description": {
        "short": "Short description.",
        "full": "Longer description."
    },
    "icons": {
        "outline": "20.png",
        "color": "96.png"
    },
    "accentColor": "#b00b2d",
    "bots": [{
        "botId": "appId",
        "needsChannelSelector": "true",
        "isNotificationOnly": "false",
        "scopes": ["team", "personal"],
        "commandLists": [{
            "scopes": ["team", "personal"],
            "commands": [{
                    "title": "command1",
                    "description": "Do this command"
                },
                {
                    "title": "command2",
                    "description": "Do this command"
                },
                {
                    "title": "command3",
                    "description": "Do this command"
                }
            ]
        }]
    }],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ]
}

isNotificationOnly实际上是布尔字段,而不是字符串字段。在您的清单中更改此内容:

"isNotificationOnly": false,

我们最近运送了"仅通知机器人"功能,在这种情况下,我们关闭文本框以输入命令到机器人。我们应该在侧载上给您一个模式验证错误,但我们没有。我们将解决这个问题。

非空字符串在JavaScript中是真实的,因此"false"评估为true

相关内容

最新更新