Tomas Melone
d7f7889b0f
fix: Remove duplicate identifier ( #1205 )
2022-02-19 15:18:34 -04:00
Pedro S. Lopez
20f3bc7a8b
fix: dont cause redirect loop due to session restore ( #1181 )
...
* fix: dont cause redirect loop due to session restore
* back to `state` in docs
* use referer to determine first injection
* bring bzck disconnect on nav
* revert some changes
2022-02-08 22:33:20 -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
64803c2ba6
update typings for fetchMessages changes
2022-02-06 19:30:13 -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
Igor Nunes
078933f061
fix(typings): add MessageTypes BUTTONS_RESPONSE ( #1032 )
...
fixes #1104
2022-02-05 22:11:53 -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
Pedro Lopez
d7a493e68a
fix: use correct @types/node-fetch ver, use working node-fetch ver from puppeteer, add test
2021-12-12 21:28:38 -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
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
Rajeh Taher
dbf9bf2158
Type file improvements ( #855 )
...
* Updated Types
* Updated types to include (#868 )
* Update index.d.ts
* fix list type
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com >
2021-10-29 23:32:13 -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
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
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
stefanfuchs
efa6cf98d2
fix: location class type ( #718 )
2021-07-12 00:54:32 +00:00
Giancarlo Rocha
9d715735ed
feat: message forwarding score ( #716 )
2021-07-11 20:52:54 -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
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
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
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 S. Lopez
0cbb0373ad
fix(ts): getNumberId typings caused error on build
2021-02-09 15:35:57 -04:00
Artem Sinelnikov
fa4923db98
fixed acceptInvite typings
2021-02-09 00:43:45 -04:00
Pedro S. Lopez
6590c75c8a
fix (ts): include pupPage and pupBrowser properties on Client typedef
2021-01-30 20:36:46 -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
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
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
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
054ef4a84f
add typings
2020-11-05 02:06:13 -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 S. Lopez
42dd866a53
feat: boolean for indicating Status update messages ( #396 )
2020-10-26 00:45:09 -04:00
Pedro S. Lopez
20e07c43d7
feat: block/unblock contacts ( #397 )
2020-10-26 00:44:03 -04:00
Pedro S. Lopez
9b096db784
feat: Send contacts ( #395 )
...
Introduces the ability to send contact cards. You can send Contacts directly or send a vCard string and it will be automatically parsed. If you'd like to disable this autoparse functionality, you can set `parseVCards: false` as an option while sending a message.
close #293
2020-10-25 22:44:37 -04:00
Aliyss Snow
aedf41b762
feat: Pin and unpin Chats ( #166 )
...
* Added Pinning
- chat.pin() to pin
- chat.unpin() to unpin
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-10-11 15:50:12 -04:00