ConvSetDraft 接口保存,以便于下次回到这个聊天界面时,通过 ConvInfo 对象的 conv_draft 字段,获取到尚未编辑完的内容,继续编辑。DraftParam draft_param = new DraftParam{draft_msg = new Message{message_conv_id = "1234",message_conv_type = TIMConvType.kTIMConv_Group,message_elem_array = new List<Elem>{new Elem{elem_type = TIMElemType.kTIMElem_Text,text_elem_content = Input.text}},}}TIMResult res = TencentIMSDK.ConvSetDraft(conv_id, conv_type, draft_param);
文档反馈