Properties
Optional message_client_time
message_client_time?: number
Optional message_cloud_custom_str
message_cloud_custom_str?: string
Optional message_conv_id
message_conv_id?: string
Optional message_conv_type
message_conv_type?: number
Optional message_custom_int
message_custom_int?: number
Optional message_custom_str
message_custom_str?: string
Optional message_elem_array
message_elem_array?: [Elem]
Optional message_group_at_user_array
message_group_at_user_array?: string
Optional message_is_excluded_from_unread_count
message_is_excluded_from_unread_count?: boolean
Optional message_is_forward_message
message_is_forward_message?: boolean
Optional message_is_from_self
message_is_from_self?: boolean
Optional message_is_online_msg
message_is_online_msg?: boolean
Optional message_is_peer_read
message_is_peer_read?: boolean
Optional message_is_read
message_is_read?: boolean
Optional message_msg_id
message_msg_id?: string
Optional message_offlie_push_config
message_offlie_push_config?: Object
Optional message_platform
Optional message_priority
message_priority?: number
Optional message_rand
message_rand?: number
Optional message_sender
message_sender?: string
Optional message_sender_group_member_info
Optional message_sender_profile
message_sender_profile?: Object
Optional message_seq
message_seq?: number
Optional message_server_time
message_server_time?: number
Optional message_unique_id
message_unique_id?: number
Message JSON keys
message_elem_array:array Elem, read-write (required), list of elements in message
message_conv_id: Read/Write (optional). Conversation ID of the message.
message_conv_type TIMConvType, read/write (optional), the session type to which the message belongs
message_sender: Read/Write (optional). Message sender.
message_priority TIMMsgPriority, read/write (optional), message priority
message_client_time: Read/Write (optional). Client time.
message_server_time: Read/Write (optional). Server time.
message_is_from_self: Read/Write (optional). Whether the message sender is the current user.
message_platform: Read/Write (optional). Platform that sends the message.
message_is_read: Read/Write (optional). Whether the message is read.
message_is_online_msg: Read/Write (optional). Whether the message is an online message. false (default): common message; true: message that disappears after being viewed.
message_is_peer_read: Read-only. Whether the message is read by the peer of the conversation.
message_status TIMMsgStatus, read/write (optional), message current state
message_msg_id: Read-only. Unique ID of the message. kTIMMsgMsgId is recommended.
message_rand: Read-only. Random code of the message.
message_seq: Read-only. Sequence number of the message.
Read/Write (optional). Custom integer field (saved locally, will not be sent to the peer end, and will become invalid after the app is uninstalled and reinstalled).
Read/Write (optional). Custom data field (saved locally, will not be sent to the peer end, and will become invalid after the app is uninstalled and reinstalled).
message_cloud_custom_str: Read/Write (optional). Custom message data (saved in the cloud, will be sent to the peer end, and can still be pulled after the app is uninstalled and reinstalled).
Read/Write (optional). Whether the message is excluded from the unread count of the conversation. NO (default): included in the unread count of the conversation; YES: excluded from the unread count of the conversation.
message_group_at_user_array: Read/Write (optional). UserID list of users that need to be mentioned (@). If you need to @all, pass in kImSDK_MesssageAtALL.
message_is_forward_message: Write-only (optional). If you need to forward a message, you cannot directly call the sendMessage API to send the original message. You need to set kTIMMsgIsForwardMessage in the original message to true before sending the original message.
message_sender_profile: Read/Write (optional). User profile of the message sender.
message_sender_group_member_info: Read/Write (optional). Information of the message sender in a group. This parameter is only valid in a group conversation. Currently, only the kTIMGroupMemberInfoIdentifier and kTIMGroupMemberInfoNameCard fields can be obtained. You are advised to obtain other fields via the TIMGroupGetMemberInfoList API.
message_offlie_push_config OfflinePushConfig, Read and write (optional), offline push settings for messages
Note: