MsgSendMessage (Details) 接口指定消息接收成员列表并发送定向消息。var message = new Message{message_conv_id = conv_id,message_conv_type = TIMConvType.kTIMConv_Group,message_elem_array = new List<Elem>{new Elem{elem_type = TIMElemType.kTIMElem_Text,text_elem_content = Input.text}},message_target_group_member_array = userid_list, //指定群消息接收成员用户 UserID 列表};StringBuilder messageId = new StringBuilder(128);TIMResult res = TencentIMSDK.MsgSendMessage(conv_id, TIMConvType.kTIMConv_Group, message, messageId, (int code, string desc, string json_param, string user_data)=>{// 消息发送异步结果});
文档反馈