Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.77 KB

File metadata and controls

25 lines (19 loc) · 1.77 KB

P2pChatMessage

Properties

Name Type Description Notes
isSell number Whether the current user is the seller. `1`: yes; `0`: no. [optional] [default to undefined]
msgType number Message type: `0` text; `1` file; `2` template; `3` order-share; `4` payment-share; `5` status update. [optional] [default to undefined]
msg string Message content; for file messages, usually URL or file key. [optional] [default to undefined]
username string Message sender username [optional] [default to undefined]
timest number Message timestamp [optional] [default to undefined]
msgObj P2pChatMessagePayload [optional] [default to undefined]
uid string Sender's crypto UID; system messages may use `System` or an empty string. [optional] [default to undefined]
type number Display type: `1` file message; `2` system message. [optional] [default to undefined]
pic string File link [optional] [default to undefined]
fileKey string File key [optional] [default to undefined]
fileType string File type: `image` for images, `video` for videos. [optional] [default to undefined]
riskType number Risk control display type. 1: off-platform traffic diversion risk; returned when a text message hits risk control [optional] [default to undefined]
toastMsg string Risk control prompt message; returned only when risk_type=1 [optional] [default to undefined]

Enum: P2pChatMessage.RiskType

  • NUMBER_1 (value: 1)