diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9288bdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,63 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ +whatsapp-web.js/node_modules/ +website-generator/node_modules/ + +# Typescript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# next.js build output +.next diff --git a/whatsapp-web.js/README.md b/whatsapp-web.js/README.md index ffc60ac..e0ca45a 100644 --- a/whatsapp-web.js/README.md +++ b/whatsapp-web.js/README.md @@ -1,4 +1,4 @@ -[![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 0.4.1296](https://img.shields.io/badge/WhatsApp_Web-0.4.1296-brightgreen.svg) +[![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2025.6](https://img.shields.io/badge/WhatsApp_Web-2.2025.6-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4) # whatsapp-web.js A WhatsApp API client that connects through the WhatsApp Web browser app @@ -11,7 +11,7 @@ It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocke The module is now available on npm! `npm i whatsapp-web.js` -Please note that Node v8+ is required due to Puppeteer. +Please note that Node v10.18.1+ is required due to Puppeteer. ## Example usage @@ -46,7 +46,7 @@ Take a look at [example.js](https://github.com/pedroslopez/whatsapp-web.js/blob/ | Send messages | ✅ | | Receive messages | ✅ | | Send media (images/audio/documents) | ✅ | -| Send media (video) | ✅ (requires google chrome) | +| Send media (video) | ✅ [(requires google chrome)](https://github.com/pedroslopez/whatsapp-web.js/issues/78#issuecomment-592723583) | | Send stickers | _pending_ | | Receive media (images/audio/video/documents) | ✅ | | Send contact cards | _pending_ | @@ -60,6 +60,7 @@ Take a look at [example.js](https://github.com/pedroslopez/whatsapp-web.js/blob/ | Kick group participants | ✅ | | Promote/demote group participants | ✅ | | Mention users | ✅ | +| Mute/unmute chats | ✅ | | Get contact info | ✅ | | Get profile pictures | ✅ | | Set user status message | ✅ | @@ -68,9 +69,34 @@ Something missing? Make an issue and let us know! ## Links -* [Documentation](https://pedroslopez.me/whatsapp-web.js) _(preview)_ +* [Reference](https://pedroslopez.me/whatsapp-web.js) +* [Guide](https://waguide.pedroslopez.me/) _(work in progress)_ * [GitHub](https://github.com/pedroslopez/whatsapp-web.js) ## Contributing Pull requests are welcome! If you see something you'd like to add, please do. For drastic changes, please open an issue first. + +## Donating + +You can support the maintainer of this project through the link below + +[![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/psla/) + +## Disclaimer + +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 https://whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners. + +## License + +Copyright 2019 Pedro S Lopez + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this project except in compliance with the License. +You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/whatsapp-web.js/docs/Base.html b/whatsapp-web.js/docs/Base.html index 1197c72..d1b98f0 100644 --- a/whatsapp-web.js/docs/Base.html +++ b/whatsapp-web.js/docs/Base.html @@ -2,9 +2,9 @@ - + - whatsapp-web.js 1.2.1-post » Class: Base + whatsapp-web.js 1.7.0 » Class: Base @@ -15,7 +15,7 @@ @@ -50,7 +50,7 @@ diff --git a/whatsapp-web.js/docs/BusinessContact.html b/whatsapp-web.js/docs/BusinessContact.html index 6e0a092..2cc7b43 100644 --- a/whatsapp-web.js/docs/BusinessContact.html +++ b/whatsapp-web.js/docs/BusinessContact.html @@ -2,9 +2,9 @@ - + - whatsapp-web.js 1.2.1-post » Class: BusinessContact + whatsapp-web.js 1.7.0 » Class: BusinessContact @@ -15,7 +15,7 @@ @@ -227,7 +227,7 @@ diff --git a/whatsapp-web.js/docs/Chat.html b/whatsapp-web.js/docs/Chat.html index 7365dfb..9b8c796 100644 --- a/whatsapp-web.js/docs/Chat.html +++ b/whatsapp-web.js/docs/Chat.html @@ -2,9 +2,9 @@ - + - whatsapp-web.js 1.2.1-post » Class: Chat + whatsapp-web.js 1.7.0 » Class: Chat @@ -15,7 +15,7 @@ @@ -96,25 +96,31 @@
fetchMessages(searchOptions)
+
mute(unmuteDate)
+
+
sendMessage(content, options)
sendSeen()
-
sendStateRecording()
-
-
+
sendStateRecording()
+
+
sendStateTyping()
unarchive()
+
unmute()
+
+
@@ -265,6 +271,40 @@
async
+

mute(unmuteDate)

+

Mutes this chat until a specified date

+
+

Parameter

+ + + + + + + + + + + + + + + + + +
NameTypeOptionalDescription
+

unmuteDate

+
+

Date

+
+

 

+
+

Date at which the Chat will be unmuted

+
+
+
+
+
async

sendMessage(content, options) → Promise containing Message

Send a message to this chat

@@ -340,6 +380,11 @@

un-archives this chat

+
async
+

unmute()

+

Unmutes this chat

+
+
@@ -350,7 +395,7 @@ diff --git a/whatsapp-web.js/docs/Client.html b/whatsapp-web.js/docs/Client.html index eb81ab0..0b4c3d8 100644 --- a/whatsapp-web.js/docs/Client.html +++ b/whatsapp-web.js/docs/Client.html @@ -2,9 +2,9 @@ - + - whatsapp-web.js 1.2.1-post » Class: Client + whatsapp-web.js 1.7.0 » Class: Client @@ -15,7 +15,7 @@ @@ -26,7 +26,7 @@