一、功能描述
注意:1. 草稿仅支持文本内容。
注意:2. 草稿仅在本地保存,不会存储到服务器,因此不能多端同步,程序卸载重装会失效。
二、设置会话草稿
通过调用 ConvSetDraft(点击查看详情) 接口,设置会话草稿。
示例代码如下:
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);