Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.52 KB

File metadata and controls

27 lines (21 loc) · 1.52 KB

P2pChatMessage

Properties

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

Enum: RiskTypeEnum

Name Value
NUMBER_1 1