Commit graph whatsapp-web.js/src
Author SHA1 Message Date
BenyFilho
9e0fe29218
New Chat property isLocked (#5798)
* New property isLocked

* New property isLocked
2026-02-06 21:42:51 -03:00
BenyFilho
9b53bebfd2
Fix PDF Caption (#5794) 2026-02-06 14:09:11 -03:00
Adrián Lizaga
48a9e1d80e
fix: disconnected event is not being fired (#5807) 2026-02-06 14:06:55 -03:00
kivirick
50485349c3
Fix setDescription to use updated group metadata (#5793) 2026-02-03 20:38:57 +00:00
A. Rifqi Yarzuq Arfani
e66d94efd9
Fix update channel module (#5791)
* Fix getChats (#5779)

* Fix: getChats -> getChatModel -> GroupMetadata and NewsletterMetadata

* Fix module change

* fix: change wrong update module of channel

* fix: correct reference to pupPage in deleteChannel method

---------

Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2026-02-03 22:36:16 +02:00
Adi1231234
98cdced13f
copy only requiredDirs and make storeRemoteSession safer (#3744)
* copy only requiredDirs and make storeRemoteSession safer

* replace fs-extra copy with native fs cp function
to avoid unhandled exceptions bug in fs-extra

* add recursive option to cp for folders copy

* fix: correct indentation in storeRemoteSession method

Fixed ESLint indentation errors (lines 105-127) by changing from
2-space to 4-space indentation to match project standards.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix formatting of session save object in RemoteAuth

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 00:37:15 -03:00
BenyFilho
32e404292b
Fix Channels WhatsApp module change (#5787) 2026-01-30 15:31:07 +02:00
BenyFilho
ce9dd1d678
Removing unused and unavailable module (#5785) 2026-01-30 10:12:41 -03:00
BenyFilho
207a5ad104
Fix getChats (#5779)
* Fix: getChats -> getChatModel -> GroupMetadata and NewsletterMetadata

* Fix module change
2026-01-30 10:50:19 +02:00
Adi1231234
d5fd776356
avoid hang by closing browser only if connected (#3847)
* avoid hang by closing browser only if connected

* fix: correct indentation in destroy() method

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 00:58:41 -03:00
tuyuribr
949c637130
Update Chat.js (#5712) 2026-01-30 00:47:44 -03:00
Vedant Mohan Goyal
e6fd112559
Store RemoteAuth ZIP files inside dataPath (#3375)
* Use `/tmp` when running inside AWS Lambda

* Revert unintended change accidentally committed

* Revert "Use `/tmp` when running inside AWS Lambda"

This reverts commit 8e5324786e5b0067498717d3827937dac0f1edb6.

* Store RemoteAuth ZIP files inside dataPath

* Discard changes to src/webCache/WebCache.js

---------
2026-01-30 00:29:30 -03:00
Yovangga Anandhika
58990a8159
change concurrency 10 (#3330) 2026-01-30 00:25:25 -03:00
alessandrocampos224
6c3f10e1d2
fix: update call handling for recent WhatsApp Web changes (#5775)
* fix: update call handling for recent WhatsApp Web changes

Updated the call handling logic to accommodate the renaming of Store.Call to WAWebCallCollection in recent WhatsApp Web versions. This ensures that incoming calls are properly managed without breaking functionality.

* Update Client.js

---------

Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
2026-01-29 22:58:08 -03:00
noelcarcasesLYN
b03680a70c
Fixes media upload to channels (#5697)
Ensures correct media upload to channels by using the mimetype from mediaInfo, rather than the file, when creating OpaqueData.

Also, it replaces the call to the function getRandomFilehash with the value of the function to retrieve the correct token.

Co-authored-by: Noel Carcases <noel.david.carcases.gomez@ibm.com>
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
2026-01-30 01:55:30 +00:00
BenyFilho
303caf9ba2
Fix deleteAddressbookContact (#5672) 2026-01-30 01:51:38 +00:00
BenyFilho
84c45c9558
Fixing method saveOrEditAddressbookContact (#5673) 2026-01-29 22:50:45 -03:00
Naor
c61a2ef189
fix: send sticker 2026-01-29 19:34:58 -03:00
Naor
fc2e97e5ab
Refactor sendSeen to include threadId parameter 2026-01-29 19:32:41 -03:00
Filipe
dd9df4083a
fix: use markSeen instead of sendSeen to fix markedUnread error (#5719)
Fixes TypeError: Cannot read properties of undefined (reading 'markedUnread')
that occurs in newer WhatsApp Web versions.

The sendSeen method was removed/changed in recent WhatsApp Web updates.
Using markSeen resolves the issue.

Fixes #5718

Co-authored-by: cp1797 <cp1797@users.noreply.github.com>
Co-authored-by: eltonnicolau <eltonnicolau@users.noreply.github.com>
Co-authored-by: telmedola <telmedola@users.noreply.github.com>
Co-authored-by: qw271862028 <qw271862028@users.noreply.github.com>
Co-authored-by: duola8789 <duola8789@users.noreply.github.com>
2026-01-19 15:54:31 +02:00
Pedro S Lopez
c13510e907 chore: fix jsdoc invalid types 2026-01-05 01:40:46 -04:00
BenyFilho
143662eae2
Fix Auth Timeout Error (#5666)
* Fix Auth Timeout Error

* fixing Auth Timeout Error
2025-12-15 10:41:15 +02:00
tuyuribr
0439d7f123
New compatibilities (#3973)
* New compatibilities

* Update Client.js

* 1

* Update Client.js

* 3

* Update Client.js

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-12-13 06:55:09 +02:00
Lai Ting Yang
de072a1c7c
fix: add missing downloadQpl parameter to downloadAndMaybeDecrypt (#4010)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-12-13 06:54:14 +02:00
RendyCraft047
6aa1bd85ab
feat: whatsapp stories implementation (#3994)
* support sending message from status broadcast

* add to index.d.ts

* add method to contact

* new modules

* Update Utils.js

* add for the examples

* add color assertion function

* finishing..

* added waveforms for audio messages and minor fixes

* fix eslint

* refactor

reorganize the store to include additional modules.

* adapt

* the last one.

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-12-13 06:34:55 +02:00
fallenleavesbuy
dec1bee842
chore: fix never resolve promise when downloading expired media (#4012)
Co-authored-by: fallenleavesguy <no@email.com>
2025-12-13 06:19:10 +02:00
BenyFilho
5438c2042b
Fixing msg.getContact and getContactById (#3978) 2025-11-25 11:25:27 -03:00
RendyCraft047
d815847d3e
fix: addition and improvement of enumerable values on types (#3740)
* Update index.d.ts

* Update Constants.js

* fix

* `code_received` is missing too

* album message types

* add to index.d.ts

* fix types error
2025-11-20 11:30:54 +00:00
Jan Loewe
166dc73c73
feat(ScheduledEvent): add none option for callType (#3838) 2025-11-20 11:28:32 +00:00
RendyCraft047
a31607e2dc
fix unpin messages (#3839)
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
2025-11-20 13:25:36 +02:00
Conan Yu
34b787a795
fix: send image rendering blured (#3775)
Co-authored-by: Yu <>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-11-09 22:39:25 +00:00
RendyCraft047
0c36613cc7
feat+fix: send vote messages & vote update event (#3913)
* add send vote function

* Update index.d.ts

* fix and add required modules

* fix poll update in group chat

* adjustments to improvements

* add example usages

* fix eslint

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-11-09 16:37:51 -03:00
BenyFilho
05f651b521
Fix Group setAddMembersAdminsOnly setMessagesAdminsOnly setInfoAdminsOnly (#3933)
* Add module to setGroupProperty

* Update methods setAddMembersAdminsOnly setMessagesAdmin setInfoAdminsOnlysOnly

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-11-06 19:34:53 +00:00
BenyFilho
4327a5f681
Fix method openChatWindow (#3936)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-11-06 21:32:06 +02:00
BenyFilho
6876dd236b
Fix method saveOrEditAddressbookContact (#3923)
* Fix method saveOrEditAddressbookContact

* Update saveOrEditAddressbookContact return void

* Update saveOrEditAddressbookContact return void
2025-11-04 16:30:25 -03:00
BenyFilho
b3caffa796
Fix getCommonGroups (#3921) 2025-11-04 19:14:17 +00:00
BenyFilho
0cdfda238f
Fix Reject Calls (#3909) 2025-11-04 19:13:18 +00:00
BenyFilho
829dd7f6d0
Fix Message Forward (#3910) 2025-11-04 16:09:42 -03:00
BenyFilho
472234da53
Fix PushNotifications (#3801) 2025-10-07 19:27:36 +00:00
BenyFilho
90dc8c8ad4
Fix Mention in Large Groups (#3803)
* Fix Mentioning in Large Groups

* Update Utils.js

* Update Utils.js

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-10-07 19:25:48 +00:00
BenyFilho
7c7851f4d4
feat: getPollVotes (#3807)
* Add required module

* Add getPollVotes function

* Add getPollVotes function

* Add getPollVotes function

* Add Message.getPollVotes

* Add Message.getPollVotes
2025-10-07 19:24:05 +00:00
BenyFilho
87a310a2de
Fix Contact getAbout method (#3833) 2025-10-07 19:12:50 +00:00
RendyCraft047
9b3d987711
fix: getPinnedMessages() (#3797)
* fix duplicate store

* fix: handle async calls properly

* fix: filter out only pinned messages

Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
2025-10-07 22:11:37 +03:00
alechkos
7304ec2135
feat: get/add/edit customer notes (#3806)
* feat: add required module

* feat: add 'addOrEditCustomerNote' function

* feat: add 'getCustomerNote' function

* fix: check for logic availability

* feat: add 'Chat.addOrEditCustomerNote'

* feat: add Chat.getCustomerNote
2025-09-27 11:35:22 -03:00
BenyFilho
0825033850
Fix Disconnections - **UPDATED REINSTALL IT** (#3811)
* Update window.injectToFunction

* Fix window.injectToFunction

* window.injectToFunction

* Fix window.injectToFunction

* Fix window.injectToFunction

* Removing override isLidMigrated
2025-09-26 00:37:32 +03:00
BenyFilho
ae7bbe7f37
Fix Inject Module Function (#3795)
* fix inject module function

* Update src/util/Injected/Store.js

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-09-10 17:14:20 +03:00
alechkos
d077716315
fix: enforce retrieval lid and phone for previously unknown contacts (#3702)
* fix: check existance if undefined

* fix: handle missing lid/phone in group participant resolution

* refactor: remove duplicated logic
2025-09-06 18:24:19 +03:00
BenyFilho
c9665438f6
Fix method participant on sendMessage (#3778)
* Fix method participant on sendMessage

* Update Utils.js

* Update Utils.js
2025-09-06 00:20:36 +03:00
Seow Zhen Jun
5276e30ac6
fix: Lid is missing in chat table (#3703)
* Use window.Store.FindOrCreateChat.findOrCreateLatestChat to get chat

* refactor: change find to findOrCreateLatestChat

* refactor: update 'injectToFunction' to support nested props in modules

* fix: resolve 'Lid is missing in chat table' error

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-09-05 22:19:15 +03:00
BenyFilho
4ac22c8c37
fix Event Ready Again and SendMessage (#3747)
* fix Event Ready Again

* Fixing SendMessage

* Fixing RejectCall
2025-09-02 03:56:56 +03:00