Skip to content

addUnreadMark

api.addUnreadMark(threadId[, type])

Parameters

  • threadId string
  • type ThreadType?
    • mặc định ThreadType.User

Return

Promise<AddUnreadMarkResponse>

Types

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

Examples

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

ts
import { ThreadType } from "zca-js";

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