OptionalconversationOptionalmessageMessage type
OptionaltargetSession ID
OptionalchannelBusiness ID of the session, limited to 20 characters
OptionalmessageUnique ID for messages stored in the local database. Don’t specify this ID when sending new messages—it’ll cause the message to fail to save. For retrying failed messages, use the ID of the previously saved message instance.
OptionalmessageUIdUnique server message ID (globally unique under the same Appkey)
OptionaloffIndicates if it's an offline message. Only valid in the message reception callback. Returns YES for offline messages, otherwise NO.
OptionalgroupGroup read receipt status
OptionalreceivedMessage received time (Unix timestamp, milliseconds)
OptionalsentMessage send time (Unix timestamp, milliseconds)
OptionalreceivedMessage receipt status
OptionalsentMessage delivery status
OptionalsenderSender ID of the message
OptionaldirectionMessage direction
OptionaluserUser info in the message
OptionalmentionedMessage @ info
OptionalpushMessage push configuration
OptionalextraAdditional message fields
OptionalexpansionMessage expansion information. Set this property before sending a message to enable the message expansion feature; otherwise, the message expansion feature cannot be used.
After sending a message successfully, use the updateMessageExpansion interface to update the expansion information.
Message extension key length should not exceed 32 characters, and value length should not exceed 4096 characters. The maximum number of extensions that can be set at one time is 20, and the total number of extensions for a message cannot exceed 300."
Note: Extension information is only supported for private chats and groups; extension information cannot be set for other conversation types.
Session type