在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,因此控制权转到其他部分,但转到其他部分后我会出错。
错误消息:机器人遇到错误或错误。 要继续运行该机器人,请修复该机器人的源代码。