Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 2.37 KB

File metadata and controls

38 lines (31 loc) · 2.37 KB

MessageDeleteRequest

Properties

Name Type Description Notes
fromUserId string Sender user ID of the original message that is being deleted. [default to undefined]
channelType number Channel type of the original message. Supports `1` direct, `3` group, `4` open channel, `6` system, and `10` community. [default to undefined]
channelId string Target identifier of the original message. Depending on `channelType`, this can be a user ID, group ID, open channel ID, community channel ID, or system target ID. [default to undefined]
subchannelId string Community subchannel ID. Required only when deleting a community-channel message that was sent to a specific subchannel. [optional] [default to undefined]
messageId string Unique message ID to delete. This corresponds to the message UID returned by send or routing services. [default to undefined]
sentAt number Send timestamp of the original message in milliseconds. Providing it helps the service locate the original message precisely. [optional] [default to undefined]
isAdmin number Whether the deletion is performed as an admin operation. `1` shows an admin recall indicator and `0` performs a normal sender recall. [optional] [default to undefined]
disablePush boolean Whether to suppress push notifications for the recall event. Not supported for open channels or community channels. [optional] [default to undefined]
extra string Custom extension data carried with the recall operation. Not supported for community channels. [optional] [default to undefined]
disableUpdateLastMsg boolean Whether to keep the recall operation from updating the channel's last-message preview. [optional] [default to undefined]

Example

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

const instance: MessageDeleteRequest = {
    fromUserId,
    channelType,
    channelId,
    subchannelId,
    messageId,
    sentAt,
    isAdmin,
    disablePush,
    extra,
    disableUpdateLastMsg,
};

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