SimplifiedMessage

SimplifiedMessage

Simplified message object, used to display combined messages (supported from v2.10.1)

Properties:
Name Type Description
nick String

Nickname of the message sender

avatar String

Profile photo address of the message sender

from String

userID of the message sender

messageBody Array.<Object>

Message body

Properties
Name Type Description
type String

Message type. Supported values are as follows:

Type Description
TIM.TYPES.MSG_TEXT Text message
TIM.TYPES.MSG_IMAGE Image message
TIM.TYPES.MSG_AUDIO Audio message
TIM.TYPES.MSG_VIDEO Video message
TIM.TYPES.MSG_FILE File message
TIM.TYPES.MSG_CUSTOM Custom message
TIM.TYPES.MSG_MERGER Combined message (supported from v2.10.1)
payload String

Message content. Supported content types are as follows:

time String

Message timestamp, in seconds

cloudCustomData String

Message custom data (saved in the cloud, will be sent to the peer end, and can still be pulled after the app is uninstalled and reinstalled; supported from v2.10.2)