Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 2.49 KB

File metadata and controls

27 lines (19 loc) · 2.49 KB

CommunityChannelMessageSendRequest

Properties

Name Type Description Notes
fromUserId String Sender user ID. Non-members can send through the server API, but push display works best when the sender has an access token.
toChannelIds List<String> Target community channel IDs. Up to 3 community channels are supported per request.
toUserIds List<String> Recipient member user IDs for a targeted community message. Only effective when sending to a single community channel. [optional]
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 serialized as a string. Built-in message types should use a JSON object string. Maximum size is 128 KB.
pushContent String Push notification text for offline recipients. Optional for built-in user content messages and required for push-enabled custom or notification messages. [optional]
pushData String Custom push payload data. Exposed as `appData` on mobile push payloads. [optional]
shouldPersist Integer Whether to store the message in community message history. `0` means do not store and `1` means store. [optional]
isCounted Integer Whether to count this message as unread for offline users. `1` counts as unread and `0` does not. [optional]
hasMention Integer Whether this is an @mention message. Set to `1` when `content` contains `mentionedInfo`. [optional]
contentAvailable Integer iOS silent-push flag. `1` enables background delivery and `0` disables it. [optional]
pushExt String Extended push configuration (JSON string as accepted by the server `CommunityChannelMsgSendInput`). [optional]
subchannelId String Target subchannel ID. If omitted, delivery follows the app's default community-channel behavior. [optional]
hasMetadata Boolean Whether to enable message metadata for this message. [optional]
metadata Map<String, Object> Custom message metadata entries. Only effective when `hasMetadata` is `true`. [optional]