# Giới thiệu

## ZCA-JS

Là một thư viện cung cấp các API (unofficial) hỗ trợ bạn xây dựng 1 bot chat Zalo bằng chính tài khoản cá nhân của bạn.

**Lưu ý:** việc sử dụng thư viện này đồng nghĩa với việc bạn đang làm trái với chính sách của Zalo và nó có thể khiến cho tài khoản của bạn bị vô hiệu hóa. Chúng tôi sẽ không chịu trách nhiệm nếu điều đó xảy ra, vậy nên hãy cân nhắc trước khi sử dụng.

### Các tính năng

* Đăng nhập
  * [Cookie](/zca-js/dang-nhap/dang-nhap-voi-cookie.md)
  * [QRCode](/zca-js/dang-nhap/dang-nhap-voi-qrcode.md)
  * [Sử dụng nhiều tài khoản](/zca-js/dang-nhap/dang-nhap-nhieu-tai-khoan.md)
  * [Sử dụng Proxy](/zca-js/dang-nhap/su-dung-proxy.md)
* Lắng nghe các sự kiện:
  * [message](/zca-js/listener/message.md)
  * [reaction](/zca-js/listener/reaction.md)
  * [undo](/zca-js/listener/undo.md)
  * [group\_event](/zca-js/listener/group_event.md)
* Các **API** giúp tương tác với **Zalo**:
  * [acceptFriendRequest](/zca-js/api/acceptfriendrequest.md)
  * [addGroupDeputy](/zca-js/api/addgroupdeputy.md)
  * [addReaction](/zca-js/api/addreaction.md)
  * [addUserToGroup](/zca-js/api/addusertogroup.md)
  * [blockUser](/zca-js/api/blockuser.md)
  * [changeFriendAlias](/zca-js/api/changefriendalias.md)
  * [changeGroupAvatar](/zca-js/api/changegroupavatar.md)
  * [changeGroupName](/zca-js/api/changegroupname.md)
  * [changeGroupOwner](/zca-js/api/changegroupowner.md)
  * [createGroup](/zca-js/api/creategroup.md)
  * [createNote](/zca-js/api/createnote.md)
  * [createPoll](/zca-js/api/createpoll.md)
  * [deleteMessage](/zca-js/api/deletemessage.md)
  * [disperseGroup](/zca-js/api/dispersegroup.md)
  * [editNote](/zca-js/api/editnote.md)
  * [fetchAccountInfo](/zca-js/api/fetchaccountinfo.md)
  * [findUser](/zca-js/api/finduser.md)
  * [getAllFriends](/zca-js/api/getallfriends.md)
  * [getAllGroups](/zca-js/api/getallgroups.md)
  * [getContext](/zca-js/api/getcontext.md)
  * [getCookie](/zca-js/api/getcookie.md)
  * [getGroupInfo](/zca-js/api/getgroupinfo.md)
  * [getOwnId](/zca-js/api/getownid.md)
  * [getQR](/zca-js/api/getqr.md)
  * [getStickers](/zca-js/api/getstickers.md)
  * [getStickersDetail](/zca-js/api/getstickersdetail.md)
  * [getUserInfo](/zca-js/api/getuserinfo.md)
  * [lockPoll](/zca-js/api/lockpoll.md)
  * [pinConversations](/zca-js/api/setpinnedconversations.md)
  * [removeGroupDeputy](/zca-js/api/removegroupdeputy.md)
  * [removeUserFromGroup](/zca-js/api/removeuserfromgroup.md)
  * [sendCard](/zca-js/api/sendcard.md)
  * [sendFriendRequest](/zca-js/api/sendfriendrequest.md)
  * [sendMessage](/zca-js/api/sendmessage.md)
  * [sendReport](/zca-js/api/sendreport.md)
  * [sendSticker](/zca-js/api/sendsticker.md)
  * [sendVoice](/zca-js/api/sendvoice.md)
  * [unblockUser](/zca-js/api/unblockuser.md)
  * [undo](/zca-js/api/undo.md)

### Cài đặt

Với **Bun**:

```
bun add zca-js
```

Với **NPM**:

```
npm install zca-js
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tdung.gitbook.io/zca-js/bat-dau/gioi-thieu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
