MsgSendMessage
时,将参数 message_is_online_msg
设置为 true
,此时发送出去的消息跟普通消息相比,会有如下差异点:var message = new Message{message_conv_id = conv_id,message_conv_type = TIMConvType.kTIMConv_C2C,message_elem_array = new List<Elem>{new Elem{elem_type = TIMElemType.kTIMElem_Custom,custom_elem_data = "正在输入中"}},message_is_online_msg = 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) => {// 处理回调逻辑});
本页内容是否解决了您的问题?