Commit graph

901 commits

Author SHA1 Message Date
WWebJS Bot
13e7b5edad chore(): generate docs 2025-09-10 14:27:45 +00:00
WWebJS Bot
65124b05ff 1.34.1 2025-09-10 14:27:20 +00: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
WWebJS Bot
93559bbe19 chore(): generate docs 2025-09-06 15:25:09 +00:00
WWebJS Bot
96ae229efb 1.34.0 2025-09-06 15:24:47 +00: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
WWebJS Bot
54a77cf254 chore(): generate docs 2025-09-05 21:21:45 +00:00
WWebJS Bot
ef49b8a2be 1.33.3 2025-09-05 21:21:19 +00: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
WWebJS Bot
c89cb56593 chore(): generate docs 2025-09-02 00:57:55 +00:00
WWebJS Bot
42501d221c 1.33.2 2025-09-02 00:57:30 +00: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
WWebJS Bot
f1fe3aad09 chore(): generate docs 2025-08-30 16:13:02 +00:00
WWebJS Bot
6549b11a67 1.33.1 2025-08-30 16:12:42 +00:00
BenyFilho
6d496560b2
Fix Method window.Store.User.getMaybeMeUser() (#3727) 2025-08-30 19:11:34 +03:00
WWebJS Bot
14a391a5e8 chore(): generate docs 2025-08-28 14:40:54 +00:00
WWebJS Bot
dc866e7b70 1.33.0 2025-08-28 14:40:32 +00:00
Fernando Mondo
912b78d299
fix: Add protocolMessageKey and fix revoked messages to preserve original before.id (#3715)
* Add protocolMessageKey and fix revoke

* Add protocolMessageKey and fix revoke

* docs: add explanation
2025-08-28 17:39:22 +03:00
alechkos
2ac982ee1c
fix: return poll vote reactions (#3694)
* wip: return poll vote reactions

* wip: add module

* wip: return poll vote reactions

* wip: return poll vote reactions

* Update Client.js

* Update PollVote.js

* wip: use async getMessagesById

* Update Client.js

* style: clean shit

* style: reformat code

---------

Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
2025-08-28 11:32:37 +03:00
Jie
6d3078fd77
fix: Correct method invocation (#3720) 2025-08-27 01:34:43 +03:00
alechkos
bd677a8a66
fix: send message properly (#3692)
* fix: remove high cpu consumption by adding waiting for message logic

 Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>

* refactor: use already defined msg id

* refactor: use optional arg for waiting for msg ack
2025-08-12 07:33:02 +03:00
Shir Serlui
ecb50450b7
Fix checking if sending to a group (#3592)
* Fix checking if sending to a group

* chore: mark channels as done feature

* refactor: add safety check for chat.id.isGroup

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-09 00:46:18 +03:00
WWebJS Bot
30b3f5e82e chore(): generate docs 2025-08-08 21:39:18 +00:00
WWebJS Bot
b296ea8d5a 1.32.0 2025-08-08 21:38:58 +00:00
BenyFilho
6953a6a5d2
Fix: Remove, Promote and Demote Participants (#3674)
* Fix: Remove, Promote and Demote Participants

* Adjust to convert @lid to phone

* Update src/structures/GroupChat.js

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

* Update src/structures/GroupChat.js

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

* Update src/structures/GroupChat.js

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

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-09 00:38:22 +03:00
Mob Code 100
b5adf47664
feat: Switch between QR or phone number pairing method (#3180)
* fix(webpack-exodus): Added the new patch

* fix(webpack-exodus): Fixed v2.3000.x and v2.24

* chore(webpack-exodus): eslint

* fix(webpack-exodus): Fixed Store

* fix(webpack-exodus): slight store fix

* chore(webpack-exodus): fix example so that I don't crash on every load

* chore: eslint fix

* fix(webpack-exodus): prevent confusion with build systems

* fix(webpack-exodus): Add proper groups module

* fix(webpack-exodus): Fix order queries

* fix(webpack-exodus): Bad export name

* feat(webpack-exodus): Re-injection, No more selectors, Pairing Code auth

* fix(webpack-exodus): Eslint and better login/logout handling

* fix(webpack-exodus): 2.24 compatibility

* revert testing options

* chore(webpack-exodus): ESLint

* chore(webpack-exodus): final eslint tweak (did not commit with last commit for some reason)

* style: fix broken link in readme file

* fix(webpack-exodus): Fix forwarding messages

* fix(webpack-exodus): finish forwarding function

* Making the ESLint god happy

* Fix window.Store.ProfilePic.profilePicFind is not a function error (#3001)

* Change window.Store.ProfilePic.profilePicFind to window.Store.ProfilePic.requestProfilePicFromServer

* Prevent breaking v2.2x

* refactor: make it more readable

---------

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

* Sanitize, improves and fixes

* make ESList god happy

* fix getInviteCode for group (#3007) (#3029)

* fix getInviteCode for group (#3007)

* move changes to proper getInviteCode method.

* style fix

* refactor: add try-catch in a case the user is not a group admin

* refactor: handle promise properly

---------

Co-authored-by: Sven Neumann <s.neumann@websix.de>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>

* fixes

* Update LocalWebCache.js

* fix delete on 2.3000 (#3048)

* fix delete on 2.3000

* fix compareWwebVersions

* fix: use proper comparison operator

---------

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

* Implement bot invoking capabilities (#3009)

* Implement bot invoking capabilities

* Update index.d.ts

* Eslint

* Webpack exodus fix message_reaction event (#3099)

* exposed WAWebAddonReactionTableMode

* capture reaction using WAWebAddonReactionTableMode

* move compareWwebVersions and check version before trying to expose new store

* message_reaction on example.js (#3102)

* handle message_reaction event on example.js

* log wweb version on ready

* fix reactions on pvt chats (#3104)

* New group function

* new group settings

* Update Client.js

* Switch pairing method between QR and phone number

* Remove existing pairing code interval

* Modify example.js

* Update docs

* Small improvements in inject function

* Fix ESLint

* example.js correction

* docs: fix docs for 'requestPairingCode' method

Co-authored-by: Leandro Matilla <30844484+wis-dev@users.noreply.github.com>

* Update Utils.js getChatModel because Meta chat object affected Group Chats

* Ajust to set isGroup as false as default

* Remove the need for custom interval

* Fix typo

* Fix intermittent response bug #9864

Co-authored-by: Mob Code 100 <66469454+MobCode100@users.noreply.github.com>

* fix: eslint fix

* Revert "Remove the need for custom interval"

This reverts commit c5d5e5626684742cadbf58f28739c1c2c9dcc582.

* Add wait for PairingCodeLinkUtils on requestPairingCode

* Remove unused vars WhatsWebStaticURL

Co-authored-by: Mob Code 100 <66469454+MobCode100@users.noreply.github.com>

* style: format code

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
Co-authored-by: Seow Zhen Jun <56989187+seowzhenjun0126@users.noreply.github.com>
Co-authored-by: Sven <sven2neumann@gmail.com>
Co-authored-by: Sven Neumann <s.neumann@websix.de>
Co-authored-by: Jorge Rocha Gualtieri <jorge@jrg.com.br>
Co-authored-by: Mateus Mercer <accounts@matbm.net>
Co-authored-by: Leandro Matilla <30844484+wis-dev@users.noreply.github.com>
Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2025-08-09 00:37:25 +03:00
alechkos
f9db14d185
feat: Event messages (#3345)
* feat: add createCallLink function

* feat: create Event class

* feat: add functionality for sending Events

* feat: add editEvent function

* refactor: send event location prop as wa does

* refactor: combine modules

* feat: add sendResponseToEvent function

* fix: createEventCallLink parameter

* docs: add documentation

* fix: eslint

* refactor: change timestamp to Date for the user's convenience

* refactor: rename 'Event' to 'ScheduledEvent' for more clarity

* style: fix typo in inner function

* refactor: remove unnecessary inner function

* refactor: rename 'sendResponseToEvent' to 'sendResponseToScheduledEvent' for more clarity

* fix: update the module name
2025-08-09 00:36:27 +03:00
alechkos
ab321f3d7e
fix: Message.pin and Message.unpin (#3319)
* fix: update function to wweb version >2.3000.0

* feat: add foolproof check

* fix: override internal function correctly
2025-08-09 00:35:40 +03:00
alechkos
18b1d32825
feat: get pinned messages (#3004)
* feat: add getPinnedMessage method

* docs: add docs for the method

* chore: fix eslint

* refactor: change logic of getting pinned messages

* refactor: combine all PinnedMsgUtils

* chore: remove comments and mark as ready for review

* style: fix typo

Co-authored-by: crazynds <36674096+crazynds@users.noreply.github.com>

---------

Co-authored-by: crazynds <36674096+crazynds@users.noreply.github.com>
2025-08-09 00:34:52 +03:00
Eniola Osabiya
44418e66c2
fix(types): update mentions type in MessageEditOptions (#3691)
* fix(types): update mentions type in MessageEditOptions #2166

* style: fix typos

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-07 09:54:04 +03:00
BenyFilho
35133a72fc
Fix Message Forward (#3680)
* Fix Message Forward

* Fix Message Forward

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-06 15:51:36 +03:00
alechkos
ca30ac4b18
feat: customise linked device name (#3325)
* feat: add functionality for setting device and browser names

* feat: add usage example

* feat: add usage example

* docs: add docs for new functionality

* docs: add missing property

* docs: supplement the implementation documentation
2025-08-06 15:50:42 +03:00
BenyFilho
81fd090e36
fix: Client.createGroup + GroupChat.addParticipants (#3670)
* Adjustment addParticipants

* createGroup fully refactored, fixed bugs, added creation options and updated docs

* fix: eslint fix

* refactor: GroupChat.addParticipants fully refactored

* fix: eslint fix

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-01 06:43:45 +03:00
BenyFilho
81fb154a9f
feat: getContactLidAndPhone (#3673)
* Add method getContactLidOrPhone

* Add method getContactLidOrPhone

* Add method getContactLidOrPhone

* Add method getContactLidOrPhone

* Add method getContactLidOrPhone

* Add method getContactLidOrPhone

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

* Add method getContactLidOrPhone

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

* Add method getContactLidOrPhone

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

* Add method getContactLidOrPhone

* Delete docs/index.html

* Delete docs/Client.html

* Create Client.html

* Create index.html

* Update to return the object

* Update to return an object

* Update Client.js to return both objects lid and phone

* Update Client.js to return both objects lid and phone

* Update src/Client.js

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

* Update src/Client.js

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

* Update index.d.ts

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

* refactor: rename function name for more clarity

* Change accept and return Array

* Change accept and return Array

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-07-29 17:39:39 +03:00
devlikeapro
bd08b69c87
Fix send seen on chat - Stream markAvailable (#3663)
fix #3540
2025-07-20 11:07:15 +03:00
WWebJS Bot
fe906afd44 chore(): generate docs 2025-06-30 06:41:47 +00:00
WWebJS Bot
0bda2bc85f 1.31.1-alpha.0 2025-06-30 06:41:28 +00:00
Ajetunmobi Isaac
eaa8445ec0
fix error when processing poll messages without messageSecret in channels (#3617)
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2025-06-30 09:40:14 +03:00
Swaraj Chavan
fcb58d3070
Fix TS2371 error in requestPairingCode type declaration (#3622) 2025-06-30 09:33:54 +03:00
WWebJS Bot
6c75d185c5 chore(): generate docs 2025-06-26 18:19:06 +00:00
WWebJS Bot
8ab5c88e19 1.31.0 2025-06-26 18:18:46 +00:00
BenyFilho
90f2222df0
Fix .sendMessage return (#3612)
Fix sendMessage return
2025-06-26 21:16:20 +03:00
dependabot[bot]
6290627f9a
chore(deps): bump fluent-ffmpeg from 2.1.2 to 2.1.3 (#3311)
Bumps [fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) from 2.1.2 to 2.1.3.
- [Commits](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: fluent-ffmpeg
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
2025-06-15 06:27:54 +00:00
WWebJS Bot
721990267e chore(): generate docs 2025-06-11 11:54:43 +00:00
WWebJS Bot
5a590b2246 1.30.1-alpha.3 2025-06-11 11:54:22 +00:00
BenyFilho
daaa04445f
Fix Send Animated Sticker (#3591)
* Fix Send Animated Sitckers

* Update Utils.js

* Add a condition to ignore channels

Add a condition to ignore channels and keep compatibility.

* chore: mark channels as done feature

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-06-10 09:14:21 +03:00
WWebJS Bot
b2bb340046 chore(): generate docs 2025-06-05 22:41:13 +00:00
WWebJS Bot
1dd7125c59 1.30.1-alpha.2 2025-06-05 22:40:52 +00:00
alechkos
d2fe324e5b
fix: GroupChat.setPicture (#3593)
* fix: find collection if not in cache

* style: use camelcase
2025-06-05 20:21:38 +03:00