我正在使用自适应卡,并且在卡上有一个按钮,该卡是选择卡上的显示卡,单击该选择卡的提交后,我想与选择用户开始群聊。 我正在尝试使用主动消息进行群聊来实现此目的,但没有使用c#获得任何互联网参考。 谁能为此提供一些建议。
var conversationParameters = new ConversationParameters
{
IsGroup = true,
Members = new ChannelAccount[] { channelAccount1, channelAccount2, activity.Recipient, activity.From },
Activity = (Activity)message
};
var identity = new MicrosoftAppCredentials(MicrosoftAppId, MicrosoftAppPassword);
MicrosoftAppCredentials.TrustServiceUrl(activity.ServiceUrl);
var connectorClient = new ConnectorClient(new Uri(activity.ServiceUrl), identity);
ConversationResourceResponse CreateConversationResponse = await connectorClient.Conversations.CreateConversationAsync(conversationParameters);
我收到错误的请求错误