2017-05-23 3 views
-1

skypeからdirectにメッセージを送信するときにエラーBad format of conversation ID(skype)が表示されるのはなぜですか?skypeから直接にメッセージを送信するときに「会話IDの形式が不正です」(skype)

IMessageActivity msg = context.MakeMessage(); 
msg.ChannelId = user.ChannelId; 
msg.ServiceUrl = user.serviceUrl; 
msg.Recipient = new ChannelAccount(id: user.userID); 
msg.Conversation = new ConversationAccount(id: user.conversationId); 
msg.Text = textMsg.Text; await context.PostAsync(msg); 

enter image description here

+1

を使用する必要がありますが、APIドキュメントをチェックしようとしたことがありますか? – SaggingRufus

+0

実行時に 'user.conversationId'の値は何ですか?たぶんそれは必要な形式ではありません... –

+0

どちらの方法でも、この質問には回答するのに十分な情報がなく、保留する必要があります – SaggingRufus

答えて

0

私は(context.sendを使用)、私は

var connector = new ConnectorClient(new Uri(msg.ServiceUrl), ConfigurationManager.AppSettings["MicrosoftAppId"], ConfigurationManager.AppSettings["MicrosoftAppPassword"]); await connector.Conversations.SendToConversationAsync((Activity)msg);

関連する問題