在特定的间隔后,我不想让用户知道某事。
如果我使用bot模拟器测试此代码,它可以正常工作(机器人在间隔结束后响应我的响应)。
但是如果我部署机器人,那么在间隔后没有启动cortana:
错误在哪里? (我从这里使用了simpleSendMessage,但添加了一行:https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/core-proactiveMessages)
在ConversationStarter中,.Speak行是新的:
message.From = botAccount;
message.Recipient = userAccount;
message.Conversation = new ConversationAccount(id: conversationId);
message.Text = "Hello, this is a notification";
message.Speak = "Hello, this is a notification";
message.Locale = "en-Us";
await connector.Conversations.SendToConversationAsync((Activity)message);
编辑:似乎无论如何都有可能。但是怎么样?或者这个功能只适用于原生的cortana?
答案 0 :(得分:0)
正如Jason所说,Cortana频道目前不支持主动消息。这是一项备受关注的功能,也是我们积压的一部分 - 尽管我没有任何具体的时间表可供分享。