无法使用Microsoft Bot Framework在Skype for Business上显示欢迎消息

时间:2018-02-27 20:46:00

标签: node.js botframework

我试图在有人连接到我的机器人时显示欢迎消息。此代码段适用于模拟器和嵌入式Web聊天。但它并不适用于Skype for Business。

    bot.on('conversationUpdate', function (message) {
        if (message.membersAdded && message.membersAdded.length > 0) {
            bot.send(new builder.Message().address(message.address).text('Hello!'));
        }
    }); 

有谁知道代码丢失的部分?我从Microsoft Bot Framework提供的示例代码中提取了此片段。

0 个答案:

没有答案
相关问题