我希望机器人说出我的欢迎信息。我已经在邮件控制器中使用了此代码,但这无济于事-
else if (message.Type == ActivityTypes.ConversationUpdate)
{
if (message.MembersAdded.Any(o => o.Id == message.Recipient.Id))
{
ConnectorClient client = new ConnectorClient(new Uri(message.ServiceUrl));
var reply = message.CreateReply();
reply.Text = "Hey there! I provide information on weather, stock and tableau. Ask me anything and I will try to answer";
reply.Speak = "Hey there! I provide information on weather, stock and tableau. Ask me anything and I will try to answer";
reply.InputHint = InputHints.AcceptingInput;
await client.Conversations.ReplyToActivityAsync(reply);
}
}