Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SendImageMessageParams

Parameters for sending an image message.

example
const result = await Message.createSendImageMessageParams(imageFile);
if (result.isOk) {
await channel.sendMediaMessage(result.data);
}

Hierarchy

Index

Accessors

  • get content(): T
  • The message content payload

    Returns T

  • get messageType(): string
  • The registered message type identifier (e.g. 'RC:TxtMsg')

    Returns string

Properties

directedUserIds?: string[]

List of target user IDs for directed messages. Only these users will receive the message.

disableNotification?: boolean

If true, suppress push notifications for this message

disableUpdateLastMessage?: boolean

If true, this message will not update the channel's last message

needReceipt?: boolean

If true, request read receipt for this message

metadata?: Record<string, string>

Key-value metadata (expansion) to attach to the message

pushConfig?: PushConfig

Push notification configuration for this message

onSendBefore?: ((message: Message<ImageMessageContent>) => void)

Type declaration

file?: File

The file to upload

onUploadProgress?: ((progress: number, message: Message<ImageMessageContent>) => void)

Type declaration

onUploadComplete?: ((remoteUrl: string, message: Message<ImageMessageContent>) => void)

Type declaration

onUploadError?: ((code: number, message: Message<ImageMessageContent>) => void)

Type declaration

Constructors