Rajeh Taher
d86c39de3c
fix: Fix inactivity issue ( #946 )
...
* Fixed Remember me issue
* Update Client.js
2021-12-16 15:25:35 +00: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
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
818bf48e5d
fix: convert button ids to string
2021-11-01 21:30:34 -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
victormga
2a7337b142
max qr refresh before giving up ( #852 )
...
* max qr refresh before giving up
* Update src/Client.js
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2021-10-29 23:45:04 -04:00
Pedro Lopez
c434e04e41
fix countrycode and formatted number functions, add tests
2021-10-29 23:41:49 -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
Muhamad Ristiyanto
4338664590
Add getBlockedContacts method ( #770 )
...
* add simple method to get blocked ids
* Change getBlockedList to getBlockedIds
* getBlockedIds to getBlockedContacts
* typo
* ESLint & other changes
* 🏷️ types
* fix: no `this.client`
* add tests
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-10-30 03:18:26 +00: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
Pedro Lopez
1f38b762ed
add warning for multidevice, keep working for forced upgrade
2021-10-29 22:58:57 -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 Lopez
022c87f3c7
optionally patch _find function if it's not found
2021-09-01 09:18:34 -04:00
Pedro Lopez
e527fe74fd
fix: patch find function to get chats
2021-09-01 09:16:12 -04:00
Pedro Lopez
40cec51956
fix: node v12 support
2021-08-01 23:56:27 -04: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
Pedro S. Lopez
ae6d61bda9
fix: correctly serialize messages with replyButtons
2021-07-19 22:23:06 -04: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
Pedro S. Lopez
a03cc41d22
Add tests and detect WhatsApp Web updates ( #686 )
...
* test setup, add initializer tests
* test sending messages
* add script to check latest version
* add github action
* use env vars
* configure environment with .env file
* add test for sticker name and author
* add DownloadManager model
* test chats and contacts
* test for number utility functions
* throw error if no remote id has been set
* Update .version
2021-07-16 02:50:05 -04:00
ApeironTsuka
04d2308bbc
Update node-webpmux 2.x syntax to 3.x (support upstream breaking change) ( #762 )
...
Co-authored-by: Apeiron <apeiron@none>
2021-07-15 22:50:54 -04:00
Edson Tégila
cd52075447
Add the option to use "browserWSEndpoint" ( #727 )
...
* Update Client.js
* Update package.json
* Update package.json
* 🚨 🔥 Fixed ESLint and removed old code.
* Update README.md
* Update README.md
* Update Client.js
* chore(deps): bump sharp from 0.26.3 to 0.28.3
Bumps [sharp](https://github.com/lovell/sharp ) from 0.26.3 to 0.28.3.
- [Release notes](https://github.com/lovell/sharp/releases )
- [Changelog](https://github.com/lovell/sharp/blob/master/docs/changelog.md )
- [Commits](https://github.com/lovell/sharp/compare/v0.26.3...v0.28.3 )
---
updated-dependencies:
- dependency-name: sharp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update package.json
* Update README.md
* Update example.js
* Update README.md
Co-authored-by: Rajeh Taher <52720753+PurpShell@users.noreply.github.com >
Co-authored-by: Rajeh Taher <rajeh@reforward.tk >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aliyss Snow <33941859+Aliyss@users.noreply.github.com >
2021-07-13 10:27:00 -07: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 Lopez
4afff38713
Fix download media (v1.13.2)
2021-07-09 03:08:52 -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
Ricardo Araújo Paes
38976558f5
feat(dev): add argument bypassCSP to use in pupperter ( #635 )
2021-06-01 22:05:44 -04:00
Wictor Nogueira
b895437458
add searchMessages method ( #586 )
...
* add searchMessages method
* fix typing
* fix typing
* remove unused statement
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-06-01 21:54:27 -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
Aliyss Snow
63d11d3f84
feat: disable / enable WA Web features ( #543 )
...
* Added Features and Enabling/Disabling of Features within WhatsappWeb
* remove feature commands from example
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2021-05-31 20:58:55 -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
Wictor Nogueira
f506c171c1
add extra option to MessageSendOptions ( #600 )
...
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-05-31 19:24:30 -04:00
tuyuribr
64e2cc48fc
feat: openChatWindow can open new chats ( #592 )
...
Open the chat window even if you never chatted with the chatId
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-05-31 19:21:57 -04:00
Wictor Nogueira
6c66ab2bef
Add sendVideoAsGif option ( #578 )
...
* Add sendVideoAsGif option
* fix typo
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-05-31 19:18:10 -04:00
Rajeh Taher
efc7018f9a
Add support for sticker Name and author ( #527 )
...
* Added Sticker author and sticker name support
This patch of Client.js includes support for sticker metadata
* Docs: stickerName and stickerAuthor in MessageOpts
* Hotfix_Sticker_Feature
fixes a bug
* Update global.html
* updated
* fixed comma
* Fixed duplicate code
* Fixing eslint
* Fixing eslint again
* eslint....
* fixing problem with eslint.
* move sticker exif data filling to Utils.formatToWebpSticker() function
* Update Client.js
* Added temporary stuff
* eslint
* Update Util.js
* eslint bad :D
* eslint
* polish work with files
* fix error and TODOs
* clean up code to match with repo code style
* update typescript params
* Update src/util/Util.js
camel Case
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
* Update Util.js
* ➖ webp-converter ➕ node-webpmux
* Update Util.js
* ✨ Use node-webpmux
* ➖ node-webpmux ➕ node-webpmux-commonjs
* ✏️ Fixed require mode
* :heavy_plus_sign:node-webpmux ➖ node-webpmux-commonjs
* ⬆️ Node-webpmux update changes
* 🚨 removing try/catch
* 🚨 complier warnings
* 🧐 stupid mistakes
* ⬆️ Upgrade required version
* 🐛 creating a buffer the right way
* 🐛 linting and simplification
* 🐛 unsimplification
* 🚨 eslint loves singlequotes
* ✨ Added emojis / categories in metadata
* 🏷️ TypeScript Declarations
* ✨ Sticker Categories in sendMessage
* 🏷️ Improved TS declarations
* fix stickerCategories type
* fix: don't set name/author if not defined
Co-authored-by: Marcelo Carvalho <mpirescarvalho17@gmail.com >
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2021-05-31 19:13:30 -04:00
Pedro Lopez
6cece4a006
fix: emit disconnected event on page navigation
...
This also addresses an issue due to a change in behavior from WhatsApp Web when the session is logged out from the device.
2021-04-20 20:02:22 -04:00
Pedro Lopez
f1e2f32988
fix: click correct element on manual qr code refresh
2021-04-20 19:39:13 -04:00
Jacob Galam
e6015162c5
fix(types): media type in MessageSendOptions ( #554 )
...
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-02-25 00:27:23 -04:00
Pedro S. Lopez
bc90ffcb19
fix: WhatsApp Web v2.2106.5 compatibility
2021-02-25 00:23:49 -04:00
Antoine Schaller
2702757dce
fix: star() & unstar() functions ( #547 )
2021-02-15 22:24:07 -04:00
Pedro S. Lopez
168c84250e
fix sending stickers on WhatsApp Web v2.2104.6
2021-02-11 18:40:35 -04:00
Pedro S. Lopez
89029ac916
add docs
2021-02-09 00:43:45 -04:00
Pedro S. Lopez
559133c3c4
fix: upload media on WhatsApp Web v2.2104.6
2021-02-09 00:35:25 -04:00