zca-js
  • ✨Bắt đầu
    • Giới thiệu
    • Ví dụ
      • Bot nhại lại người dùng
      • Bot chào mừng thành viên
  • 🔑Đăng Nhập
    • Đăng nhập với Cookie
    • Đăng nhập với QRCode
    • Đăng nhập nhiều tài khoản
    • Sử dụng Proxy
  • 🛠️API
    • acceptFriendRequest
    • addGroupDeputy
    • addReaction
    • addUserToGroup
    • blockUser
    • changeFriendAlias
    • changeGroupAvatar
    • changeGroupName
    • changeGroupOwner
    • createGroup
    • createNote
    • createPoll
    • deleteMessage
    • disperseGroup
    • editNote
    • fetchAccountInfo
    • findUser
    • getAllFriends
    • getAllGroups
    • getContext
    • getCookie
    • getGroupInfo
    • getOwnId
    • getQR
    • getStickers
    • getStickersDetail
    • getUserInfo
    • lockPoll
    • pinConversations
    • removeGroupDeputy
    • removeUserFromGroup
    • sendCard
    • sendFriendRequest
    • sendMessage
    • sendReport
    • sendSticker
    • sendVoice
    • unblockUser
    • undo
  • 📡Listener
    • message
    • reaction
    • undo
    • group_event
Powered by GitBook
On this page
  • api.pinConversations(threadId[, isGroup, pin])
  • Parameters
  • Return
  • Examples
  1. API

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);
PreviouslockPollNextremoveGroupDeputy

Last updated 3 months ago

🛠️