Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 2.8 KB

File metadata and controls

29 lines (21 loc) · 2.8 KB

DirectChannelMessageSendRequest

Properties

Name Type Description Notes
fromUserId String Sender user ID. The sender should have an access token so push notifications can display sender information correctly.
toUserIds List<String> Recipient user IDs. Up to 1000 users are supported in a single request.
messageType String Message type. Supports built-in types and custom types registered in the client SDK. Custom types must not start with `RC:` and must not exceed 32 characters.
content String Message content payload. Built-in message types should pass a JSON object serialized as a string. Maximum size is 128 KB.
pushContent String Push notification text shown to offline recipients. Required for custom message types or notification/signal messages that need push delivery. [optional]
pushData String Custom payload included in the push notification. Exposed as `appData` on iOS and Android. [optional]
isEchoToSender Integer Whether to sync the message to the sender's client while the sender is online. `1` enables sync and `0` disables it. [optional]
count Integer Aligns with Java `DirectChannelMsgSendInput.count` (push/badge-related counter field name in server model). [optional]
verifyBlocklist Integer Whether to filter recipients against the sender's blocklist. `0` means no filtering and `1` means filter blocked users out. [optional]
shouldPersist Integer Whether to store the message in recipient cloud history. `0` means do not store and `1` means store. [optional]
contentAvailable Integer iOS silent-push flag. `1` enables background delivery and `0` disables it. [optional]
hasMetadata Boolean Whether to enable message metadata (message expansion) for this message. [optional]
metadata Map<String, Object> Custom message metadata entries. Keys are limited to 32 characters and values to 4096 characters. [optional]
disablePush Boolean Whether to suppress push notifications for offline recipients. [optional]
pushExt String Extended push configuration (JSON string as accepted by `DirectChannelMsgSendInput`). [optional]
disableUpdateLastMsg Boolean Whether to keep this message from updating the channel's last-message preview. [optional]
needReadReceipt Integer Whether to request read receipts for this persisted message. `1` requests read receipts and `0` disables them. [optional]