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.getStickersDetail(stickerIds)
  • Parameters
  • Return
  • Examples
  1. API

getStickersDetail

Lấy thông tin của các sticker

api.getStickersDetail(stickerIds)

Parameters

  • stickerIds number | number[]

    • mảng hoặc 1 id sticker cần lấy thông tin

Return

Promise<StickerDetailResponse[]>

StickerDetailResponse

  • id number

  • cateId number

  • type number

  • stickerUrl string

  • stickerSpriteUrl string

  • stickerWebpUrl string | null

Examples

Lấy sticker với từ khóa "xin chào"

// lấy thông tin của 5 sticker đầu tiên tìm thấy với từ khóa
    
try {
    const keyword = "xin chào";
    const stickerIds = await api.getStickers(keyword);
    const stickersDetail = await api.getStickersDetail(stickerIds.slice(0, 5));
    
    console.log(stickersDetail);
} catch(e) {
    console.error(e);
}
PreviousgetStickersNextgetUserInfo

Last updated 4 months ago

🛠️