deleteMessage

Xóa tin nhắn của bản thân hoặc thành viên nhóm

api.deleteMessage(options, threadId[, type])

Parameters

  • dest DeleteMessageDestination

  • onlyMe boolean?

    • mặc định true , chỉ xóa ở phía bản thân

Return

Promise<DeleteMessageResponse>

Types

export type DeleteMessageResponse = {
    status: number;
};

export type DeleteMessageDestination = {
    data: {
        cliMsgId: string;
        msgId: string;
        uidFrom: string;
    };
    threadId: string;
    /**
     * mặc định ThreadType.User
     */
    type?: ThreadType;
};

Examples

Xóa tin nhắn bản thân sau 5s

Last updated