Lucas Rosa
2abe4a157d
Merge branch 'master' into bugfix-multi_vcard
2020-11-02 13:20:25 -03: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
Lucas Rosa
75296b652b
feat: add received vcards to the message.
2020-10-26 19:49:06 -03:00
Lucas Rosa
b15ec768d3
fix: show multiple vcard as array in body
2020-10-26 16:23:26 -03: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
Pedro S. Lopez
604656cf73
fix: change OpaqueData module lookup function ( #391 )
...
A change introduced in WhatsApp Web v2.2043.8 caused this to break, leading to issues while sending media
fix #390
2020-10-21 15:18:51 -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 S. Lopez
bf2775d1f0
feat: update group settings (messages and set info admins only) ( #374 )
...
close #187
2020-10-11 15:14:06 -04:00
Pedro Lopez
ba6ec7feab
fix: apply message serialization fix everywhere
...
Moving this to a serializer function like done with a couple other models guarantees getting messages with pending acks won't fail elsewhere. It also sets it up so the we can add/remove properties on the Message model as needed in the future.
related: 51a1028588
2020-10-09 02:29:07 -04:00
Pedro Lopez
51a1028588
fix: remove pendingAckUpdate from serialization on changed message ack
...
As of WhatsApp Web v2.2041.6, a "pendingAckUpdate" property was added to the Message model that persists on serialization but is a non-serializable type. This fix removes it from the change:ack so it can be properly sent through puppeteer.
fix #371
2020-10-09 01:40:07 -04:00
Pedro Lopez
ee21e14547
feat: indicate if chat is currently muted
2020-09-27 19:15:34 -04:00
Leonardo Almeida
cbf8fb7cf5
feat: chat mute expiration timestamp ( #351 )
...
add chat.muteExpiration to indicate when the mute expires
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-09-27 19:11:08 -04:00
Pedro Lopez
ab0db80063
fix: reliably get group metadata
...
GroupMetadata was only loaded for the first couple chats, so you could not access it on older group chats without performing an action that would update its state
close #264
2020-09-01 12:48:22 -04:00
Pedro Lopez
502b22f6d7
feat: forward messages
...
close #316
2020-08-25 23:00:35 -04:00
Pedro Lopez
7da8345722
fix: upload media
...
As of WhatsApp Web v2.2035.12, the structure of the return value for `uploadMedia()` now returns an object that contains the previously returned data in its `mediaEntry` property.
fix #318
2020-08-25 22:30:04 -04:00
Pedro Lopez
4344df6152
fix: properly detect successful authentication on dark mode
2020-08-25 21:40:57 -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
9da553ecb9
feat: Set client's display name (pushname)
2020-08-17 22:19:29 -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
753b6772ab
feat: get current battery status
2020-06-18 01:28:25 -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
Maximilian Walterskirchen
6c7a3f9899
fix: Added check for null in Message constructor ( #253 )
...
Co-authored-by: Walterskirchen <walterskirchen@walter-group.com >
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-06-16 18:15:19 -04:00
Javier Portillo
2abd3729d8
fix: clear qr refresh interval on client.destroy() ( #249 )
...
* fix: client.destroy() keeps trying to get QR code when client is not authorized yet
Co-authored-by: Javier Portillo <javier.marquez@dada-dada.com >
2020-06-08 22:31:22 -04:00
Caio Henrique Agiani
832e402671
fix: WhatsApp Autentication by oguzhan51 ( #237 )
...
The selector used to detect successful authentication was changed in WhatsApp Web v2.2023.2
Co-authored-by: oguzhan51
2020-06-04 20:03:44 -04:00
Aliyss Snow
47011a32a5
feat: Interface controls ( #220 )
...
- Open chat drawer
- Open chat window
- Open message info drawer
- Close drawer
2020-05-31 18:14:21 -04:00
Pedro Lopez
44f837c42a
fix: remove unreliable return values for new mute state
2020-05-24 00:19:23 -04:00
Aliyss Snow
4beeab9b2c
feat: mute/unmute chats ( #168 )
...
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-05-24 00:10:26 -04:00
Pedro Lopez
cca74ec8b9
docs: indicate return type for MessageMedia.fromFilePath
2020-05-23 23:28:19 -04:00
Pedro Lopez
8b656c2caf
fix: set thumbnail for media messages
...
close #55
2020-05-23 23:21:13 -04:00
Pedro Lopez
4d09a4b60c
fix: media would stay stuck uploading when using the media option
2020-05-23 22:55:18 -04:00
Pedro Lopez
7d2c89cf84
docs: fix wrong parameter name
2020-05-23 22:37:31 -04:00
Pedro Lopez
0928f48762
Merge branch 'master' of https://github.com/pedroslopez/whatsapp-web.js
2020-05-23 22:36:04 -04:00
Pedro Lopez
eb82e80343
feat: Helper function to create MessageMedia from a local file path
2020-05-23 22:35:59 -04:00
Caio Henrique Agiani
f5a0de7def
fix: Wait for WhatsApp page load ( #209 )
...
* Fix bug on Puppeteer timeout 30000 ms exceeded
2020-05-23 21:52:46 -04:00
Pedro Lopez
d6637d662a
fix: visual glitch when sending message to new chat; no longer require at least one chat to have been created
2020-05-16 02:08:13 -04:00
Aliyss Snow
bcd02aa5e4
set defaultViewPort option for puppeteer ( #167 )
...
- Mainly for those who like to keep the GUI open.
- Expands to fit and looks like it usually would.
2020-04-20 22:57:59 -04:00
Pedro Lopez
686c99f0c7
feat: send audio as voice note
...
This adds the 'sendAudioAsVoice' option for messages
close #160
2020-04-14 23:18:08 -04:00
Pedro Lopez
bab54aea8b
fix: set url subtype for messages with link previews
...
Co-authored-by: João Vitor Miranda <joao.miranda@aluno.ufabc.edu.br >
Co-authored-by: Top <shmuliktop@users.noreply.github.com >
2020-04-14 22:42:05 -04:00
Pedro Lopez
044f62216b
feat: link previews
...
After this commit, previews for links will be enabled by default. To disable it, use linkPreview: false as an option when sending the message.
close #98
2020-04-11 19:45:06 -04:00
Pedro Lopez
2b3c3e971a
docs: add new param to jsdoc for getProfilePicUrl
2020-04-11 19:04:15 -04:00
Pedro Lopez
8528d9b0b6
feat: get profile pic url by user ID
...
This moves the function from Contact to Client to enable getting profile picture without requiring a conversation before. The old function is still available on Contact for convenience and backwards-compatibility.
2020-04-11 19:03:47 -04:00
Pedro Lopez
7eb7fa8e28
feat: send online status
...
close #69
2020-04-11 18:56:23 -04:00
Pedro Lopez
8714e90df9
revert: included this by mistake on last commit
2020-04-11 18:52:01 -04:00
Pedro Lopez
478f7136d9
feat: takeover on conflict
...
This adds funcitonality to takeover after a certain timeout if WhatsApp Web has been opened in another browser
close #119
2020-04-11 18:48:50 -04:00