Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 2.08 KB

File metadata and controls

38 lines (31 loc) · 2.08 KB

GroupChannelStreamMessageSendRequest

Properties

Name Type Description Notes
fromUserId string Sender user ID. [default to undefined]
toChannelId string Target group channel ID. [default to undefined]
messageType string Message type. Fixed value `RC:StreamMsg` for stream messages. [default to undefined]
content StreamMessageContent [default to undefined]
toUserIds Array<string> Recipient member user IDs for a targeted group message. Up to 10 users. [optional] [default to undefined]
isEchoToSender number Whether to sync the message to the sender&#39;s client while the sender is online. `1` enables sync and `0` disables it. [optional] [default to undefined]
shouldPersist number Whether to store the message in cloud message history. `0` means do not store and `1` means store. [optional] [default to undefined]
hasMention number Whether this is an @mention message. Set to `1` when `content` contains `mentionedInfo`. [optional] [default to undefined]
metadata { [key: string]: string; } Custom message metadata entries. Keys are limited to 32 characters and values to 4096 characters. Up to 100 key-value pairs. [optional] [default to undefined]
disableUpdateLastMsg boolean Whether to keep this message from updating the channel&#39;s last-message preview. [optional] [default to undefined]

Example

import { GroupChannelStreamMessageSendRequest } from '@nexconn/server-sdk';

const instance: GroupChannelStreamMessageSendRequest = {
    fromUserId,
    toChannelId,
    messageType,
    content,
    toUserIds,
    isEchoToSender,
    shouldPersist,
    hasMention,
    metadata,
    disableUpdateLastMsg,
};

[Back to Model list] [Back to API list] [Back to README]