pinConversations
Ghim hoặc bỏ ghim các cuộc hội thoại
api.pinConversations(threadId[, isGroup, pin])
Parameters
threadId
string
|string[]
type
ThreadType?
mặc định
ThreadType.User
pin
boolean?
mặc định true
Return
Promise<PinConversationsResponse>
Examples
Ghim cuộc hội thoại nhóm
import { ThreadType } from "zca-js";
const threadId = "0000000000000000000";
api.pinConversations(true, threadId, ThreadType.Group)
.then(console.log)
.catch(console.error);
Bỏ ghim cuộc hội thoại nhóm
import { ThreadType } from "zca-js";
const threadId = "0000000000000000000";
api.pinConversations(false, threadId, ThreadType.Group)
.then(console.log)
.catch(console.error);
Last updated