addUnreadMark

Đánh dấu chưa đọc

api.addUnreadMark(threadId[, type])

Parameters

  • threadId string

  • type ThreadType?

    • mặc định ThreadType.User

Return

Promise<AddUnreadMarkResponse>

Types

export type AddUnreadMarkResponse = {
    data: {
        updateId: number;
    };
    status: number;
};

Examples

Đánh dấu chưa đọc 1 nhóm

import { ThreadType } from "zca-js";

api
    .addUnreadMark("000000000000000000", ThreadType.Group)
    .then(console.log).catch(console.error);

Last updated