Constructs a message.
The extension attribute of the message.
The message body. See ChatMessageBody.
The conversation type. See {@link ChatType}.
The conversation ID.
Whether the message is delivered only when the recipient(s) is/are online:
true
:The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is discarded.false
:The message is delivered when the recipient(s) is/are online. If the recipient(s) is/are offline, the message will not be delivered to them until they get online.The message direction. See ChatMessageDirection.
The user ID of the message sender.
The number of members that have read the group message.
Whether the delivery receipt is required, which is to check whether the message is delivered successfully.
true
: Yes.false
: No.Whether the message is read.
true
: Yes.false
: No.Whether the message read receipt is required.
true
: Yes.false
: No.Whether it is a message in a message thread.
true
: Yes. In this case, you need to set the user ID of the message recipient to the message thread ID. See to.false
: No.Note
This parameter is valid only for group chat.
Whether it is a online message.
true
: Yes. In this case, if the application is running in the background, a notification window may pop up.false
: No.The local message ID.
The Unix timestamp when the message is created locally. The unit is millisecond.
The message ID generated on the server.
Whether read receipts are required for group messages.
true
: Yes.false
: No.The delivery priorities of chat room messages. Note Only for chat rooms.
The recipient list of a targeted message.
The default value is undefined
, indicating that the message is sent to all members in the group or chat room.
This property is used only for messages in groups and chat rooms.
The Unix timestamp when the server receives the message. The unit is millisecond.
The message sending status. See ChatMessageStatus.
The user ID of the message recipient:
Gets the count of read receipts of a group message.
Set the chat room message priority.
Gets the list of Reactions.
Gets details of a message thread.
Creates a command message for sending.
The user ID of the message recipient.
The command action.
The conversation type. See {@link ChatType}.
The message instance.
Creates a combined message for sending.
The message recipient. The field setting is determined by the conversation type:
A collection of message IDs. The list cannot be empty. It can contain a maximum of 300 message IDs.
The conversation type. See {@link ChatType}.
The message instance.
Creates a custom message for sending.
The user ID of the message recipient.
The custom event.
The conversation type. See {@link ChatType}.
The message instance.
Creates a message with a file attachment for sending.
The user ID of the message recipient.
The file path.
The conversation type. See {@link ChatType}.
The message instance.
Creates an image message for sending.
The user ID of the message recipient.
The image path.
The conversation type. See {@link ChatType}.
The message instance.
Creates a location message for sending.
The user ID of the message recipient.
The latitude.
The longitude.
The conversation type. See {@link ChatType}.
The message instance.
Creates a received message instance.
The received message.
The message object.
Creates a text message for sending.
The user ID of the message recipient.
The text content.
The conversation type. See {@link ChatType}.
The message instance.
Creates a video message for sending.
The user ID of the message recipient.
The path of the video file.
The conversation type. See {@link ChatType}.
The message instance.
Creates a voice message for sending.
The user ID of the message recipient.
The path of the voice file.
The conversation type. See {@link ChatType}.
The message instance.
Generated using TypeDoc
export class type