var message = new Message{message_conv_id = conv_id,message_conv_type = TIMConvType.kTIMConv_Group,message_cloud_custom_str = "unity local custom data",message_elem_array = new List<Elem>{new Elem{elem_type = TIMElemType.kTIMElem_Text,text_elem_content = Input.text}},message_need_read_receipt = true,};StringBuilder messageId = new StringBuilder(128);TIMResult res = TencentIMSDK.MsgSendMessage(conv_id, TIMConvType.kTIMConv_C2C, message, messageId, (int code, string desc, Message data, string user_data) => {// Process the callback logic});
message_need_read_receipt field in Message (Details). If yes, after the user reads the message, the receiver calls the MsgSendMessageReadReceipts API (Details) to send a read receipt.TIMResult res = TencentIMSDK.MsgSendMessageReadReceipts(msg_array, (int code, string desc, string user_data) => {// Process the callback logic});
SetMsgReadedReceiptCallback callback (Details) and update the UI based on the notification to display the message as, for example, "Read by two members".TIMResult res = TencentIMSDK.SetMsgReadedReceiptCallback(msg_array, (List<MessageReceipt> message_receipt, string user_data) => {// Process the callback logic});
MsgGetMessageReadReceipts API (Details) to pull the message read receipt information.TIMResult res = TencentIMSDK.MsgGetMessageReadReceipts(msg_array, (int code, string desc, List<MessageReceipt> message_receipt, string user_data) => {// Process the callback logic});
GetMsgGroupMessageReadMemberList API (Details) to pull the member list by page.TIMResult res = TencentIMSDK.MsgGetMessageReadReceipts(message, TIMGroupMessageReadMembersFilter.TIM_GROUP_MESSAGE_READ_MEMBERS_FILTER_READ, next_seq, 20, (List<GroupMemberInfo> json_group_member_array, ulong next_seq, bool is_finished, string user_data) => {// Process the callback logic});
Feedback