Azure Webchat中的Microsoft Bot框架错误

时间:2020-03-04 19:42:11

标签: dialog botframework bots chatbot

在onmessage函数中调用this.dialog时出现错误。

        this.onMessage(async (context, next) => {
        if(d == "true")
        {
            await context.sendActivity("token is there");

        }
        else{
            await this.dialog.run(context, this.dialogState);
            await next();
        }
}

d值将为false,因此控制权转到其他部分,但转到其他部分后我会出错。

错误消息:机器人遇到错误或错误。 要继续运行该机器人,请修复该机器人的源代码。

0 个答案:

没有答案