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