jurajmatus
98ff761cfb
fix: fetchMessages infinite loop when there are no messages in the chat ( #1480 )
...
* Fix of fetchMessages
* Node 12 compatibility
2022-06-14 00:22:53 -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
f32f3c71ba
fix: get groupnotification chat
...
close #1329
2022-03-28 23:44:04 -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
Pedro Lopez
3c24df085a
add back deprecated info.me
2022-02-28 00:51:28 -04:00
Pedro Lopez
6691d25282
fix: message.getInfo() works for both MD and non-MD
2022-02-27 23:28:57 -04:00
YaronD
52c8336236
Added message duration in seconds ( #1230 )
...
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2022-02-27 22:30:47 -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
Shir Serlui
66283da903
Fix message.delete(true) ( #1211 )
...
* Fix message.delete(true)
* Fix for tests
2022-02-19 15:31:23 -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
Noam Zaks
303ea3ab6b
fix types and docs for Buttons class ( #1070 )
...
* fix: typing of buttons class
* fix remaining types
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2022-02-07 00:56:57 +00:00
Pedro Lopez
4aae8b0f32
fix: sort before splicing when fetching messages
2022-02-06 20:03:59 -04:00
Pedro Lopez
64803c2ba6
update typings for fetchMessages changes
2022-02-06 19:30:13 -04:00
Azeem Haider
aa9e19a19e
fetchMessages gets currently available messages by default ( #1015 )
...
* get chat default messages fix #1014
* fixing format
* Update src/structures/Chat.js
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2022-02-06 19:27:38 -04:00
Pedro S. Lopez
f149516d0d
chore(tests): add Chat model tests ( #784 )
...
* add search and status tests
* reset to previous status in test
* move version to its own test
* add tests for Chat model
* keep hooks at the top
* run tests recursively in default script
2022-02-05 22:05:42 -04:00
Shir Serlui
bb2ef88e0a
fix: message.delete() can revoke for everyone ( #1107 )
...
Change msg.canRevoke to msg._canRevoke according to WhatsApp code change
2022-02-05 15:52:04 -04:00
Pedro Lopez
b93c7b4b76
fix invalid jsdoc
2022-01-25 20:48:44 -04:00
Pedro Lopez
a37ff69692
fix: restore node 12 support
2022-01-25 20:40:50 -04:00
Pedro Lopez
bdff59fb44
fix: remove problematic import
2022-01-25 19:45:57 -04:00
Wictor Nogueira
d05803074a
update MessageMedia.fromUrl ( #811 )
...
* fix MessageMedia.fromUrl docs
* use content-type as fallback
* set filename based on url
* fix empty filename
* wrap expression in parentheses
* hotfix
* JSDoc fix
* fix for jsdog
* eslint gets retirement home
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
Co-authored-by: Aliyss Snow <33941859+Aliyss@users.noreply.github.com >
2022-01-21 23:57:15 +01:00
shirser121
46ba9c5e9a
Add isGif to message._patch ( #963 )
...
* Update Message.js
Add isGif to the message data
* add typings
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2021-12-12 21:57:11 -04:00
tuyuribr
2052e0479d
Fix: multiple list sections ( #1004 )
...
* Fix multiple list sections
* singleQuotes
* Update src/structures/List.js
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2021-12-10 20:47:07 +01:00
Pedro Lopez
818bf48e5d
fix: convert button ids to string
2021-11-01 21:30:34 -04:00
Rajeh Taher
97a1d399ee
Format phone numbers ( #650 )
...
* 📦 Declared NumberInfo in store
* 📝 Add client.js functionality
* 🚨 eslint just admires singlequote strings
* 📝 Add shortcuts to using client method
* ♿ Adding parity between the ids
* ♿ Same method name parity
* 🚨 ESLint indentation error.
* 🚨 ESLint doublequote string error.
* 🎨 Proposed changes
* 🎨 Fixed badly done code :v and applied proposed changes.
* ⚡ fixed calling the wrong function (sigh)
* ⚡ Fixed missing try-catch code.
* 🚨 Fixes ESLint indentation errors.
* ⚡ fix the documentation issues.
* 🏷️ typescript
* 🏷️ Typo in function name
Co-authored-by: Rajeh Taher <rajeh@reforward.tk >
2021-10-29 23:33:38 -04:00
Pedro Lopez
353af130d0
remove unnecessary default
2021-10-29 23:25:06 -04:00
Rajeh Taher
06107af67d
Allow a chat to be muted indefinitely ( #849 )
...
* muteChat fixed
* Update src/Client.js
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
* Update src/Client.js
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
* date fix
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2021-10-29 23:24:36 -04:00
Rajeh Taher
95facee885
Fixes GroupNotification.getChat() returning client's chat. ( #699 )
...
* 🥅 getChat returns expected, instead of the client's chat.
* 🥅 Fixed .reply method too
* revert + fix
2021-10-29 23:00:10 -04:00
tuyuribr
b60029ed09
feat: Send buttons and Lists ( #756 )
2021-09-14 00:06:05 +03:00
tuyuribr
ab415ff9be
feat: Include payment info ( #684 )
2021-09-13 23:58:39 +03:00
Pedro S. Lopez
d9ccb6f276
fix: correctly resolve media that hasn't been downloaded ( #763 )
...
* fix: correctly abort if media does not exist
* catch 404s
* dont throw for media that cant be fetched
2021-08-01 23:29:06 -04:00
Wictor Nogueira
cd774bef17
feat: Add MessageMedia.fromUrl method ( #769 )
2021-07-31 16:36:11 +03:00
tuyuribr
cdede835af
Include Calls ( #720 )
...
* Get Call module
* The call event
* Update onCall index.d.ts
2021-07-17 00:05:53 -04:00
Rajeh Taher
54a07fa22f
feat: Add support to suspicious links ( #642 )
2021-07-12 11:03:11 -07:00
Giancarlo Rocha
9d715735ed
feat: message forwarding score ( #716 )
2021-07-11 20:52:54 -04:00
Pedro S. Lopez
0ef6061d7e
Fix downloading media for WhatsApp Web v2.2126.10 ( #735 )
...
* fix downloadMedia
* return a boolean for hasMedia
2021-07-09 02:38:31 -04:00
JoseHM8A
cdc00e934d
feat: acceptGroupV4Invite ( #677 )
...
* Added option client.acceptGroupV4Invite()
* Update Client.js
* Update index.d.ts
Added a description to the inviteV4 object
Renamed "invite" by "inviteV4"
* Update Client.js
* Update Message.js
renamed "invite" to "inviteV4"
* Update Client.js
* Added message.acceptGroupV4Invite method
* Update index.d.ts
acceptGroupV4Invite
* better typings, refactor some names
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2021-06-05 17:10:47 -04:00
tuyuribr
0a061f982c
feat: Add from which device the message was sent ( #648 )
...
* Add from which device the message was sent.
Use the message Id for fingerprint the device that was being use when the message was sent
* To single quotes
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-05-31 21:03:23 -04:00
renjop
5177a257cf
feat: Get Orders and Products ( #612 )
...
* - Get products and orders
* - Get products and orders
* - Eslint fixes
* - Eslint fixes
* allow downloading media for products
* products and orders work on normal accounts
Co-authored-by: Renato Jop <renato.jop@consystec-corp.com >
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-05-31 20:46:43 -04:00
Antoine Schaller
2702757dce
fix: star() & unstar() functions ( #547 )
2021-02-15 22:24:07 -04:00
Pedro S. Lopez
e2acd03efc
fix: download media on WhatsApp Web v2.2104.6
2021-02-09 00:24:48 -04:00
Pedro S. Lopez
cea1830dde
docs: fix error generating Label docs
2020-12-29 00:33:49 -04:00
Pedro S. Lopez
f639c53f0a
feat: Get message delivery information ( close #418 )
2020-12-29 00:33:49 -04:00
Raphael R
3e32fe27ea
feat: mark chat as unread ( #475 )
...
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-12-29 00:33:49 -04:00
Marcelo Carvalho
5c6195738f
feat: add GroupChat types ( #485 )
...
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-12-29 00:33:49 -04:00
Pedro S. Lopez
32575490da
docs: fix typo
2020-12-29 00:33:49 -04:00
Antoine Schaller
5a0ccc8b17
feat: added starred indicator to messages ( #501 )
...
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-12-29 00:33:49 -04:00
Marcelo Carvalho
1b946940f4
feat: star/unstar messages ( #494 )
2020-12-29 00:33:49 -04:00
Pedro S. Lopez
71dbe99023
feat: get Contact's "About" text ( close #491 )
2020-12-29 00:33:49 -04:00
Pedro S. Lopez
8b101d1f3d
feat: get links included in message ( #457 )
2020-12-29 00:33:49 -04:00