我可以创建一个新的群组对话,并让团队认出我的提及(它会在消息中创建包含用户姓名的正确用户信息的弹出式div),但实际上不会触发移动或桌面平台上的通知活动 - 这是我实际需要工作的部分。
var channelData = new Dictionary<string, string>();
channelData["teamsChannelId"] = yourTeamsChannelID;
IMessageActivity newMessage = Activity.CreateMessageActivity();
newMessage.Type = ActivityTypes.Message;
newMessage.Text = "Hello <at>Guy</at>. This is a newly created reply chain.";
var mention = new Mention();
mention.Mentioned = new ChannelAccount("correctIdGoesHere", "Guy");
mention.Text = "<at>Guy</at>";
newMessage.Entities = new List<Entity>();
newMessage.Entities.Add(mention);
ConversationParameters conversationParams = new ConversationParameters(
isGroup: true,
bot: null,
members: null,
topicName: "Test Conversation",
activity: (Activity)newMessage,
channelData: channelData);
var result = await connector.Conversations.CreateConversationAsync(conversationParams);
答案 0 :(得分:0)
这确实是一个错误,已经输入我们的错误数据库。