SendMediaMessageParams

public final class SendMediaMessageParams

Send media message parameters.

Required parameters for sending a media message (image, file, voice, video, etc.).

Usage example:

val params = SendMediaMessageParams(
ImageMessage().apply {
localPath = "file:///path/to/image.jpg"
}
).apply {
pushConfig = PushConfig().apply {
pushContent = "You received an image"
}
}
channel.sendMediaMessage(params) { msg, error ->
// ...
}

Parameters

content

media message content body, a MessageContent or its subclass

Constructors

Properties

Link copied to clipboard
Link copied to clipboard
private Array<String> directedUserIds

Target user ID list for directed messages.

Link copied to clipboard
private Boolean disableNotification

Whether to disable push notification for this message.

Link copied to clipboard
private Boolean disableUpdateLastMessage

Whether to prevent this message from updating the channel's latest message.

Link copied to clipboard
private Map<String, String> metadata

Message metadata in key-value format.

Link copied to clipboard
private Boolean needReceipt

Whether this message requires a read receipt.

Link copied to clipboard

Push configuration.

Functions

Link copied to clipboard
Link copied to clipboard
public final Array<String> getDirectedUserIds()

Target user ID list for directed messages.

Link copied to clipboard
public final Boolean getDisableNotification()

Whether to disable push notification for this message.

Link copied to clipboard
public final Boolean getDisableUpdateLastMessage()

Whether to prevent this message from updating the channel's latest message.

Link copied to clipboard
public final Map<String, String> getMetadata()

Message metadata in key-value format.

Link copied to clipboard
public final Boolean getNeedReceipt()

Whether this message requires a read receipt.

Link copied to clipboard
public final PushConfig getPushConfig()

Push configuration.

Link copied to clipboard
public final Unit setDirectedUserIds(Array<String> directedUserIds)

Target user ID list for directed messages.

Link copied to clipboard
public final Unit setDisableNotification(Boolean disableNotification)

Whether to disable push notification for this message.

Link copied to clipboard
public final Unit setDisableUpdateLastMessage(Boolean disableUpdateLastMessage)

Whether to prevent this message from updating the channel's latest message.

Link copied to clipboard
public final Unit setMetadata(Map<String, String> metadata)

Message metadata in key-value format.

Link copied to clipboard
public final Unit setNeedReceipt(Boolean needReceipt)

Whether this message requires a read receipt.

Link copied to clipboard
public final Unit setPushConfig(PushConfig pushConfig)

Push configuration.