WhiskeySockets/Baileys:面向 WhatsApp Web 的 WebSocket TypeScript API
英文标题:🔥 WhiskeySockets/Baileys
Baileys 是一个基于 WebSockets 的 TypeScript 库,用于与 WhatsApp Web API 交互。项目自 7.0.0 版本起引入多项破坏性变更,开发者需查阅最新迁移指南以完成升级。项目提供新版文档、Discord 社区及商业级支持渠道,同时接受赞助以支持维护工作。维护者强调,该项目与 WhatsApp 无官方关联,且不鼓励违反 WhatsApp 服务条款、垃圾消息、跟踪软件、批量或自动化消息等用途。
57.2 KB
74.0 KB
中文
注意
破坏性变更通知。
自 7.0.0 起,该库引入了多项破坏性变更。
请访问 https://whiskey.so/migrate-latest 了解更多信息。
Baileys 是一个基于 WebSockets 的 TypeScript 库,用于与 WhatsApp Web API 交互。
可通过以下链接加入 WhiskeySockets 社区:https://whiskey.so/discord
新版指南已发布于 https://baileys.wiki 。
如果你希望获得 Baileys 当前维护者 Rajeh 提供的面向企业的商业级支持,可以预约视频聊天。可通过 Discord 联系他,或在此处预订 1 小时的时间段。越早预订越好,因为他的可用时间通常很快就会排满。他每小时能提供很高的价值,并会在时间结束前解答你的所有问题。
如果你是企业,我们鼓励你为项目高昂的开发成本作出回馈,并支持那些每周投入数十小时维护项目的维护者。你可以通过预约会议或在下方提供赞助来实现这一点。欢迎各种规模的企业提供支持,包括真实善意的贡献工时。本说明并不构成对企业使用该库的认可或鼓励。请参阅下方免责声明。
赞助
如果你希望为该项目提供资金支持,可以在此处支持当前维护者。
注意
本项目与 WhatsApp 或其任何子公司、关联公司不存在关联、合作、授权、认可或任何形式的官方联系。WhatsApp 官方网站为 whatsapp.com。“WhatsApp”及相关名称、标志、徽记和图像均为其各自所有者的注册商标。
Baileys 的维护者绝不认可将本应用用于违反 WhatsApp 服务条款的行为。本应用维护者呼吁用户承担个人责任,以其预期的公平方式使用本应用。请自行酌情使用。请勿利用本项目向他人发送垃圾信息。我们不鼓励任何跟踪软件、大规模消息发送或自动化消息发送用途。
版权所有 (c) 2025 Rajeh Taher/WhiskeySockets
采用 MIT 许可证:特此免费授予任何获得本软件及相关文档文件(以下简称“软件”)副本的人不受限制地处理本软件的权利,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售本软件副本的权利,以及允许获提供本软件的人员进行上述操作,但须遵守以下条件:
上述版权声明及本许可声明应包含在本软件的所有副本或主要部分中。
本软件按“原样”提供,不附带任何明示或暗示的保证,包括但不限于适销性、特定用途适用性和不侵权保证。在任何情况下,无论是因合同、侵权或其他原因引起的任何索赔、损害或其他责任,作者或版权持有人均不对因本软件、本软件的使用或其他处理行为引起、与之相关或由此产生的责任承担负责。
因此,项目维护者不对本项目任何潜在的滥用行为承担责任。
English / 原文
Caution
NOTICE OF BREAKING CHANGE.
As of 7.0.0, multiple breaking changes were introduced into the library.
Please check out https://whiskey.so/migrate-latest for more information.
Baileys is a WebSockets-based TypeScript library for interacting with the WhatsApp Web API.
Join the WhiskeySockets community via the link: https://whiskey.so/discord
The new guide is posted at https://baileys.wiki .
If you'd like business to enterprise-level support from Rajeh, the current maintainer of Baileys, you can book a video chat. Book a 1 hour time slot by contacting him on Discord or pre-ordering here. The earlier you pre-order the better, as his time slots usually fill up very quickly. He offers immense value per hour and will answer all your questions before the time runs out.
If you are a business, we encourage you to contribute back to the high development costs of the project and to feed the maintainers who dump tens of hours a week on this. You can do so by booking meetings or sponsoring below. All support, even in bona fide / contribution hours, is welcome by businesses of all sizes. This is not condoning or endorsing businesses to use the library. See the Disclaimer below.
Sponsor
If you'd like to financially support this project, you can do so by supporting the current maintainer here.
Caution
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners.
The maintainers of Baileys do not in any way condone the use of this application in practices that violate the Terms of Service of WhatsApp. The maintainers of this application call upon the personal responsibility of its users to use this application in a fair way, as it is intended to be used. Use at your own discretion. Do not spam people with this. We discourage any stalkerware, bulk or automated messaging usage.
Copyright (c) 2025 Rajeh Taher/WhiskeySockets
Licensed under the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Thus, the maintainers of the project can't be held liable for any potential misuse of this project.