Rajeh Taher
2ce2c7e97d
Basic changes; no real change
2023-02-21 03:33:46 -06:00
29b61b396b
Merge branch 'pedroslopez:main' into WaWJS2
2023-02-10 13:18:04 -06:00
Michal Serlui
f1607752dd
try to fix queryWidExists ( #1987 )
2023-02-10 11:06:20 -03:00
025f9914c3
Merge branch 'pedroslopez:main' into test2
2023-01-15 17:19:13 -06:00
Pedro S. Lopez
70f2391d51
fix group methods ( #1934 )
...
* fix: create group
* fix set group subject, description, properties; exit group
* fix participant methods
* fix return type
* fix invite methods
2023-01-15 17:59:20 -04:00
Pedro S. Lopez
e1917494bf
Revert "fix: Fix client-side message rendering issue when sending attachements through the library ( #1905 )" ( #1932 )
...
This reverts commit 7dd8688f04 .
2023-01-15 14:54:50 -04:00
Rajeh Taher
7dd8688f04
fix: Fix client-side message rendering issue when sending attachements through the library ( #1905 )
2023-01-15 14:32:28 -04:00
Pedro S. Lopez
23d5147a14
fix: compatibility with LegacyPhoneFeatures in latest WhatsApp Web version ( #1930 )
...
* fix removed features on latest wweb version
* errors
2023-01-15 14:30:20 -04:00
Rajeh Taher
8a45a726ec
Merge branch 'main' into fix-buttons-list
2023-01-06 20:17:02 +02:00
Rajeh Taher
288a572af6
feat: Implement Call Rejection + Introduction of Socket API ( #1882 )
...
* Initial stage
* ESLint
* eslint is annoying
* fix: distinguish Wap from Socket's Wap
2022-12-22 16:02:49 -03:00
Rajeh Taher
d1b2df9051
Merge branch 'main' into fix-buttons-list
2022-12-20 21:48:35 +02:00
Pedro S. Lopez
db55d869f8
fix: delete messages for everyone ( #1842 )
2022-11-26 04:44:35 -04:00
Pedro S. Lopez
d9f9c28276
fix: get quoted msg ( #1841 )
2022-11-26 04:38:29 -04:00
Rajeh Taher
c8fe80635a
Merge branch 'main' into fix-buttons-list
2022-11-13 23:01:11 +02:00
Felipe Martins
82120f0446
Fix GroupMetadata module ( #1789 )
...
* Fix GroupMetadata module
* Update src/util/Injected.js
Co-authored-by: Felipe Martins <felipe.dev@virtuamax.com.br >
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2022-11-13 12:36:06 +01:00
Rajeh Taher
447c3c2a0f
Merge branch 'main' into fix-buttons-list
2022-10-28 01:31:19 +03:00
Pedro S. Lopez
9981723505
fix: message replies compatible with WhatsApp Web v2.2241.6 ( #1765 )
...
* fix message replies
* fix up some tests
2022-10-26 23:32:06 -04:00
Pedro S. Lopez
088ec32b7b
Support for WhatsApp Web 2.2241.6 ( #1762 )
...
* proposed fix
* Fixes
* Add condition for older versions of WA
* fix for old node version support
* fix: default to mdbackend = true
Co-authored-by: purpshell <rajeh@reforward.dev >
2022-10-26 22:43:19 -04:00
Rajeh Taher
60fbd03256
Merge branch 'main' into fix-buttons-list
2022-10-22 21:34:23 +03:00
Pedro S. Lopez
36aa37f1ac
fix: set ephemeral fields and get links from messages ( #1752 )
...
* fix setting ephemeral fields
* fix missing links method
2022-10-21 00:12:02 -04:00
Shir Serlui
aba0f3c3c9
Fix buttons sending ( #1655 )
...
* Fix buttons sending
* Quick reply id must be a string
* Update src/util/Injected.js
* Update src/structures/Buttons.js
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2022-08-15 18:53:28 +03:00
Shir Serlui
c32348d3cc
Use quick reply ( #1651 )
...
* Use template only if url or call buttons exist
* fix typo
* fix for tests
* fix for test
* Update src/util/Injected.js
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* Add quick reply models
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2022-08-15 16:11:29 +03:00
Shir Serlui
4fe001f32f
List work now for bussines accounts ( #1652 )
2022-08-15 12:03:10 +03:00
purpshell
6de1ede32b
Fixes, and cleanup
2022-08-15 00:16:55 +03:00
Rajeh Taher
19273a434e
Merge branch 'main' into fix-buttons-list
2022-08-14 22:36:50 +03:00
Sergio Carvalho
ef68f2f156
Fix buttons list ( #1649 )
...
* DOCS: Buttons usage
* FIX: Limit buttons amount to avoid crashes
* STYLE: Fix for ESLINT test
2022-08-14 22:12:01 +03:00
jurajmatus
537e843a49
Async buffer->BASE64 conversion ( #1481 )
...
* Async buffer->BASE64 conversion
* ESLint fixes
2022-08-10 16:31:04 +00:00
purpshell
aee6f057c1
a
2022-08-10 18:11:44 +03:00
purpshell
81111faa05
attempted fix. Buttons are broken, lists are working
2022-08-10 13:54:27 +03:00
Rajeh Taher
b1693b49e0
merge ( #1635 )
...
* updating forward documentation. (#1624 )
* updating forward documentation.
* Update Message.js
* Update index.d.ts
* Update docs/Message.html
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* fix: `star` Error: Evaluation failed: TypeError: msg.chat.sendStarMsgs is not a function (#1598 )
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* Update User agent (#1470 )
I encountered errors because of this (it says that the chrome version needs to be updated)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* feat: [Updated] Loading screen listener with percent and message (#1563 )
* last update
* eslint fix
* headless fix
* Update index.d.ts
Co-authored-by: stefanfuchs <stefan1234@gmail.com >
* Update index.d.ts - Add 'LOADING_SCREEN' type to Enum
Co-authored-by: stefanfuchs <stefan1234@gmail.com >
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* feat: Adding file size by bytes to MessageMedia (#1273 )
* Update index.d.ts
* Update Message.js
* Update Message.js
* Update MessageMedia.js
* Update MessageMedia.js
* Fix: Cannot read properties of undefined (reading 'id') (#1604 )
This change fix `react` evaluation:
```
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'id')
at Object.<anonymous> (https://web.whatsapp.com/bootstrap_main.44dc3fdf06d9bb8b053d.js:2:103021 )
at Generator.next (<anonymous>)
at t (https://web.whatsapp.com/vendor1~bootstrap_qr.5922e52928d864c0918c.js:2:66483 )
at s (https://web.whatsapp.com/vendor1~bootstrap_qr.5922e52928d864c0918c.js:2:66694 )
at https://web.whatsapp.com/vendor1~bootstrap_qr.5922e52928d864c0918c.js:2:66753
at Y (https://web.whatsapp.com/bootstrap_qr.f74b98c729dd38392a5f.js:37:128505 )
at new y (https://web.whatsapp.com/bootstrap_qr.f74b98c729dd38392a5f.js:37:121072 )
at Object.<anonymous> (https://web.whatsapp.com/vendor1~bootstrap_qr.5922e52928d864c0918c.js:2:66634 )
at Object.k (https://web.whatsapp.com/bootstrap_main.44dc3fdf06d9bb8b053d.js:2:105511 )
at Object.t.sendReactionToMsg (https://web.whatsapp.com/bootstrap_main.44dc3fdf06d9bb8b053d.js:2:102647 )
at ExecutionContext._evaluateInternal (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Message.react (/app/node_modules/whatsapp-web.js/src/structures/Message.js:344:9)
```
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* Feat: add message_reaction event (#1619 )
* Add 'message_reaction' event
Co-authored-by: Nowbie S <33182389+NowDev@users.noreply.github.com >
Co-authored-by: Ruvian S <12111730+matricce@users.noreply.github.com >
Co-authored-by: Yehuda Eisenberg <32451776+YehudaEi@users.noreply.github.com >
Co-authored-by: tonbotfy <106827778+tonbotfy@users.noreply.github.com >
Co-authored-by: stefanfuchs <stefan1234@gmail.com >
Co-authored-by: Jeremy Andes <73316325+jeremyandes@users.noreply.github.com >
Co-authored-by: Wictor Nogueira <57378387+wictornogueira@users.noreply.github.com >
2022-08-10 13:46:16 +03:00
Wictor Nogueira
f2ec77f969
Feat: add message_reaction event ( #1619 )
...
* Add 'message_reaction' event
2022-08-09 16:09:16 -03:00
Alon Schwartzblat
61c0a6be56
Reaction feature added. ( #1400 )
...
* Fix get order.
* Fix types.
* Add set picture for profile and for groups.
* Fix bug.
* Fix
* Fix types
* Fix eslint
* Add send reaction feature.
* Add send reaction feature.
* Add set picture for profile and for groups.
* Add send reaction feature.
* Add send reaction feature.
* Add send reaction feature.
* Add send reaction feature.
* Add send reaction feature.
* Add send reaction feature.
* Update src/structures/Reaction.js
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com >
* Bug fixes.
* Bug fixes.
* Bug fixes.
* Fix
* Fix
* Fix example
* Fix conflict
* Fix conflict
* Fix conflict
* Fix conflict
* Fix conflict
* Fix conflict
* move implementation to message model
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com >
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2022-06-21 00:46:07 -04:00
Shir Serlui
ebc56bc280
fix: correctly get models and fetchMessages in WhatsApp Web v2.2220.8
...
* Fix models is undefined
* Feat models is undefined
* Feat models is undefined
* Fix loadEarlierMsgs
* use `getModelsArray()` to get models
* fix: correctly loadEarlierMsgs with ConversationMsgs module
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2022-06-09 23:41:25 -04:00
Pedro Lopez
374983b9a6
fix: find old features module
2022-04-21 17:18:47 -04:00
Rajeh Taher
5e2e9dd139
Fix: Cannot read properties of undefined (reading 'features') // original: ( #1407 ) ( #1410 )
...
* Fix: Cannot read properties of undefined (reading 'features') (#1407 )
* Fix: Cannot read properties of undefined (reading 'features')
Find MD backend without features
* Fix for tests
* Update Client.js
* Update LegacySessionAuth.js
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com >
2022-04-21 17:15:00 -04:00
༺ LᴇG̸ᴇɴD ༻
e9104b390d
Fix: Cannot read properties of undefined (reading 'getProfilePicFull') ( #1362 )
...
* Fix for issue#1356 - Cannot read properties of undefined reading getProfilePicFull
* use cross-compatible profilePicFind function
Co-authored-by: Joaquin Touris <joaquin@192.168 .1.6>
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2022-03-28 23:17:55 -04:00
Pedro S. Lopez
2718c1328c
fix compatibility issues with WhatsApp Web 2.2208.7 ( #1311 )
...
* fix compatiblity issues with v2.2208.7
* remove expclusive test
2022-03-09 00:54:57 -04:00
Alon Schwartzblat
c45fae5c15
Fix get order. ( #1274 )
...
* Fix get order.
* Fix types.
2022-03-01 23:08:27 -04:00
Rajeh Taher
0d55d40885
feat: Multi-device support ( #889 )
...
* 🚑 Added ready selector for multi-device
* SendMessage fix
* File management system and some fixes
* cleanup
* cleanup again
* eslint
* critical fix for reloading the same session
* Checking for valid folder name (regex)
* ESLint hotfix (regex escapes)
* Typings cleanup
* cleanup listener
* Multi-device Branch merge (#888 )
* Duplicate
* qr fix and allow non-beta users to connect
* urgent: selector fix
* urgent: qr timeout fix
* fix
* Updated type so no TS error when sending list/buttons
* Update index.d.ts
* fix QueryExist for Multidevice (#928 )
* creates isRegisteredUserBeta
* fix QueryExist
* fix Error: GROUP_JID: invalid jid type: Not an instance of WID issue (#926 )
* fix Error: GROUP_JID: invalid jid type: Not an instance of WID issue
* clean code
* Cleanup
* Fix for update chrome error
* ESLint fix
* :red_light: fix for RMDIR
* Update README.md
* Update README.md
* fix: getProfilePicUrl fix by victormga (#941 )
* fix: MD presence available/unavailable (#942 )
* delete session when appropriate & fix for SW
* ignore QR timeout errors
* Presence and ChatState updates working for MD+Non-MD
* shell uses new session storage
* lint fix
* support session.json-based auth for non-md
* md fix
* md fix
* fix shell clientId
* remove exclusive mocha test
* make linkPreview default to false
* remove ignored errors on getQuotedMessage
* fix: dont modify existing this.options.puppeteer object
* tests work with new dir auth
* remove exclusive test
* fixes and tests for group creation and participant functions
* remove unused function
* wip fix group settings functions
* isRegisteredUser && getNumberId hotFix (#955 )
* isRegisteredUser && getNumberId hotFix
A fix for client.isRegisteredUser and client.getNumberId. Use for reference or if you are stuck with MD and NEEDS this function. Problably Whatsapp will break this in a couple weeks
* fix for non-md
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* Fix WA 2.2146.9 MD + victormga branch (#991 )
* qrcode now uses observers instead of timeout
* automatic auth/qrcode detection
* Fix WA 2.2146.9 MD
Got from github:victormga/whatsapp-web.js#multidevice maybe it's behind pedro branch
Co-authored-by: victormga <victor_mga@hotmail.com >
* fix
* fix*
* getnumberid to multidevice (#1027 )
* getNumberId to main
isRegisteredUser && getNumberId hotFix #955 To main
* Update Client.js
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com >
* Update Client.js
* Message.raw() (#1005 )
* Message.raw()
* i just noticed
* Update index.d.ts
* Update index.d.ts
* Update Message.js
* Get rid of sharp now!!!!!!!! (#1045 )
* commit 1
* finally, gotten rid of sharp
* pckg.json
* service worker fix & disableMessage option
* typings
* Update example.js
* clear session system
* Update Client.js
* Update Client.js
* Fix accepting group private invite (#1094 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* [MD] Add getCommonGroups with specific user. (#1097 )
* Add getCommonGroups with specific user.
* Fix
* Fix
* Fix
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix getCommonGroups. (#1122 )
* Fix of Unexpected identifier async destroy() (#1123 )
* Fix of Unexpected identifier async destroy()
* Fix made in #1107
* Temporary fix for "Sticker" module
* some really quick changes
* Update Injected.js
* Update Injected.js
* Update index.d.ts
* fix: getNumberId Solved (#1142 )
* getNumberId Solved
* isRegisteredUser Solved
* formmated
* Apply suggestions from code review
* Update src/util/Injected.js
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* Fix: "Chrome user data dir was not found ..."
fixes the error caused by puppeteer.
* Update Client.js (#1154 )
* fix: getNumberId and isRegisteredUser (#1159 )
* fix: getNumberId and isRegisteredUser
* Apply suggestions from code review
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
* Update client.js
* Update Injected.js
* Update Client.js
* Update index.d.ts
* Update Client.js
* Update Client.js
* fix lint indentation
* fix auth_failure event for non-md, tests
* fix setting group subject
* fix finding Label module
* set remember-me after clearing localStorage
* fix: send messages to groups correctly on MD, use new ID format
* fix setting / getting contact status
* fix msg.getInfo, add message tests
* fix group settings functions
* fix set group description, handle errors in setSubject
* fix group invite functions
* fix leaving group
* bring back phone info for non-md users
* remove unused option, update typings
* add back jsdoc for qr event
* fix setting sticker metadata, clean up sticker functions
* rawData is a get only property
* fix and simplify getNumberId/isRegisteredUser
* fix getInviteInfo
* setDisplayName returns bool, not yet implemented for md
* fix: stream module (#1241 )
* linkPreview has no effect on MD, return default to true
* fix: del linkPreview option on md
* cleanup, types and docs updates
* update readmes / test notes
* remove DS_Store
* DS_Store in gitignore
* test stability (timeouts/sleeps)
Co-authored-by: Rajeh Taher <rajeh@reforward.tk >
Co-authored-by: Gustavo B <52040719+Gugabit@users.noreply.github.com >
Co-authored-by: Maikel Ortega Hernández <maikeloh@gmail.com >
Co-authored-by: victormga <victor_mga@hotmail.com >
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com >
Co-authored-by: gon <68490103+nekiak@users.noreply.github.com >
Co-authored-by: Alon Schwartzblat <63599777+Schwartzblat@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Šebestíček <44745014+SebestikCZ@users.noreply.github.com >
Co-authored-by: Emmanuel Anaya Luna <38712443+KeruMx@users.noreply.github.com >
Co-authored-by: L337C0D3R <51872799+L337C0D3R@users.noreply.github.com >
Co-authored-by: Reni Delonzek <renidelonzek@gmail.com >
2022-02-27 18:51:08 -04:00
༺ LᴇG̸ᴇɴD ༻
f0e49efcf9
[Main Branch]: Fix Cannot read properties of undefined (reading 'Socket') ( #1249 )
...
Co-authored-by: Joaquin Touris <joaquin@192.168 .1.5>
2022-02-25 17:11:28 -04:00
Pedro S. Lopez
70ca073f38
fix: send messages properly when disappearing mode is on ( #1174 )
...
* fix: send messages properly when dissappearing mode is on
* add `isEphemeral` to message model
2022-02-06 21:48:55 -04:00
Shir Serlui
7e36cceaf0
extra options can override other options when sending message (#1103 )
...
* Fix the option to use special options
When we want to use some extra function we need to pass it into the options object, but because it inserted in the first line, the auto options reset some options (like 'type').
This is minor change that can help to add functionallity
* Update Injected.js
Put the special options in the end
* Update Injected.js
Fix , mistake
* only `extra` options can override everything else
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2022-02-06 21:00:10 -04:00
Pedro S. Lopez
2f1c894a34
add tests for takeoverOnConflict ( #1170 )
...
* add tests
* fix module test, remove unused CryptoLib
2022-02-05 20:04:00 -04:00
Zulfikar
20aee44c3b
fix getLabels error ( #1049 )
...
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2022-02-05 16:41:27 -04:00
Pedro S. Lopez
7950aae5d1
fix: find Store in v2.2202.8 ( #1130 )
...
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2022-01-25 20:15:19 -04:00
tuyuribr
89a06b15a8
Hot Fix WA 2.2147.14 ( #1035 )
...
* Hot Fix WA 2.2147.14
* Update Injected.js
* Update Client.js
* sendPresence1
* Update Client.js
* queryLinkPreview
* openChatDrawer
* revert back to using Wap
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2021-12-07 23:04:44 -04:00
tuyuribr
3958105926
Fix WA 2.2146.9 ( #990 )
...
* Fix WA 2.2146.9
WA is serving two versions to me, so we need to check window.mR.findModule('Conn').lengh for a while
* to singleQuotes
* Update Injected.js
* simplify getting `Conn` module, use different object for `Store`
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2021-11-24 09:40:01 -04:00
Pedro Lopez
3aa0e4f7b3
fix: dont modify id reference when serializing message
2021-10-30 00:45:04 -04:00
Pedro Lopez
d44a525b02
fix: serialize message id remote when fetching messages
...
close #825
2021-10-30 00:12:06 -04:00
Pedro Lopez
c434e04e41
fix countrycode and formatted number functions, add tests
2021-10-29 23:41:49 -04:00