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
Pedro Lopez
1c31139434
fix(types): add missing type defs for chat.muteExpiration
2020-09-27 19:18:07 -04:00
Pedro Lopez
ee21e14547
feat: indicate if chat is currently muted
2020-09-27 19:15:34 -04:00
Caio Henrique Agiani
c827b32328
fix(types): correct response type for message.forward() ( #324 )
2020-08-28 22:00:13 -04:00
Pedro Lopez
502b22f6d7
feat: forward messages
...
close #316
2020-08-25 23:00:35 -04:00
Pedro Lopez
7180beda2e
feat: Get corresponding Chat from Contact object and vice versa
...
close #269
2020-08-17 23:31:19 -04:00
Pedro Lopez
34aa136bf9
fix(docs): Correctly document Chat timestamp property
...
close #287
2020-08-17 22:36:32 -04:00
Pedro Lopez
2a58cfe8e2
fix(types): properly set optional arguments when sending / replying to messages
...
close #309
2020-08-17 22:28:27 -04:00
Pedro Lopez
9da553ecb9
feat: Set client's display name (pushname)
2020-08-17 22:19:29 -04:00
stefanfuchs
97705b1865
fix: MessageMedia interface to class (index.d.ts) ( #301 )
...
* fix: change MessageMedia to class
* fix: remove all references to MessageMediaInterface
* add MessageMedia constructor params docs
2020-08-08 15:03:09 -04:00
stefanfuchs
fbdfd2c4dd
fix: Constants export in index.js ( #285 )
...
* fix: add Constants export in index.js
* fix: add missing constants export in index.d.ts
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-08-03 02:58:15 -04:00
stefanfuchs
5c84a1651d
chore: add missing types in JSDoc/TSDoc (ClientOptions, ClientInfo, MessageSendOptions, Session) ( #286 )
...
* chore: add ClientOptions and ClientInfo in JSDoc
* chore: add MessageSendOptions type
* chore: add ClientSession type in JSDoc
* chore: remove @todo from createGroup (was already solved)
Co-authored-by: Pedro Lopez <pedroslopez@me.com >
2020-08-03 02:52:37 -04:00
stefanfuchs
bfea74f567
fix: add missing type definitions ( #278 )
...
* fix: @todo docs improvements
* fix: add ClientInfo to Client typings
* add ClientInfoPhone
* fix: set getBatteryStatus as async
* add ClientInfo comment
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-07-11 02:58:57 -04:00
YY
a10b458cd5
feat: custom user Agent in Client ( #271 )
...
* Added Option to Custom User Agent in Client
* Update Typescript Index
* Delete Variable UserAgent From Client
* Update Variable UserAgent to userAgent
2020-07-03 02:05:23 -04:00
Pedro Lopez
300b367fa0
feat: logout client
...
close #255
2020-06-17 23:58:02 -04:00
Pedro Lopez
ad9ae1f703
fix: move invite info to client
...
Since static methods do not have access to `this.client`, it was giving an error when trying to call these functions. The client itself is a better place for them.
close #258
2020-06-17 23:29:34 -04:00
stefanfuchs
d7459eac23
feat: add typescript definition file ( #252 )
...
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-06-16 18:12:14 -04:00