༺ 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 Lopez
a9b2a1aab8
remove duplicated message type
2022-02-06 16:30:44 -04:00
Pedro Lopez
3b4632201d
fix: add missing message types
2022-02-06 16:26:25 -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
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
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
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
Rajeh Taher
54a07fa22f
feat: Add support to suspicious links ( #642 )
2021-07-12 11:03:11 -07: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
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
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
* ➕ 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 S. Lopez
bc90ffcb19
fix: WhatsApp Web v2.2106.5 compatibility
2021-02-25 00:23:49 -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
559133c3c4
fix: upload media on WhatsApp Web v2.2104.6
2021-02-09 00:35:25 -04:00
Pedro S. Lopez
8b101d1f3d
feat: get links included in message ( #457 )
2020-12-29 00:33:49 -04:00
Marcelo Carvalho
e2a642a81b
feat: send media as stickers ( #479 )
...
Adds the option `sendMediaAsSticker` that will take care of converting media to appropriate formats and send it as a sticker. Note that ffmpeg is required to properly convert animated stickers that are not in webp format.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
2020-12-29 00:33:49 -04:00
Marcelo Carvalho
e141a5df97
feat: send media as document ( #490 )
...
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com>
2020-12-29 00:33:49 -04:00
Lucas Rosa
576768e390
feat: Get registered ID for a given phone number ( #483 )
...
Exposes internal getNumberById function for easy usage.
This can help with dealing with brazilian numbers with the extra digit, always returning the correct ID.
This will probably eventually replace the current isRegisteredUser function.
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
2020-12-29 00:33:49 -04:00
Aliyss Snow
87cb5a0519
feat(interface): Open chat search, open chat at message position ( #447 )
2020-12-29 00:33:49 -04:00
dyegoaurelio
274d24002b
feat: WA Business Labels support ( #407 )
...
* Get all labels
* Get chats by label
* Get labels assigned to chats
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com>
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
2020-12-29 00:33:49 -04:00
Pedro Lopez
467f2af7d8
fix: properly serialize chats with pending button replies
...
close #489
2020-12-21 21:55:38 -04:00
victormga
d86ccec5d1
fix: Expose store on WhatsApp Web v2.2047.10 ( #437 )
...
Fixed whatsapp updates
close #436
2020-11-19 14:55:41 -04:00
Pedro Lopez
7738f7910b
fix linting issues
2020-11-05 01:40:12 -04:00
Pedro Lopez
fc7a1a9974
fix: address removal of Conn.me
...
This change on WhatsApp Web v2.2045.15 caused errors when sending messages and getting the current user id
2020-11-05 01:37:51 -04:00
Pedro Lopez
b0465ceeff
fix: expose GroupMetadata
...
WhatsApp Web v2.2045.15+ no longer has this in the store by default
2020-11-05 01:20:52 -04:00
yuvalfis
e520a96b20
fix: serialize msgs.buttons and delete msgs from chat model ( #402 )
...
Co-authored-by: yuvalFishler <yuvalf@realfriend.ai>
close #386
2020-11-01 18:32:46 -04:00
Pedro S. Lopez
42dd866a53
feat: boolean for indicating Status update messages ( #396 )
2020-10-26 00:45:09 -04:00