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
Pedro Lopez
ef507fcb95
Merge branch 'master' of https://github.com/pedroslopez/whatsapp-web.js
2020-04-11 14:59:39 -04:00
Pedro Lopez
8e011e0233
feat: get current whatsapp web version
2020-04-11 14:59:32 -04:00
InstantlyMoist
470c7aea04
feat: added MediaKey in order to see which sticker has been sent ( #146 )
2020-04-11 14:54:19 -04:00
Antoine Schaller
f92f1ec6bf
Fix uploadMedia arguments after origin code change ( #153 )
2020-04-11 14:53:22 -04:00
Aliyss Snow
93a617336a
feat: battery percentage changed event ( #126 )
...
New "change_battery" event is triggered when the battery percentage changes. Has current battery percentage and charging state as object param.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-04-05 23:36:03 -04:00
kurob1993
1780436b93
fix: make pupBrowser and pupPage available sooner ( #137 )
...
* move this.pupBrowser variable to line 51 to resolve not being able to close the browser when it is not connected to the internet
* move pupPage along with pupBrowser
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-04-05 23:04:03 -04:00
Pedro Lopez
7acbd3d800
fix: properly set chatId
...
This was causing errors when using the .reply() function
2020-04-05 22:57:59 -04:00
Pedro Lopez
67435b2244
fix: group events were not being triggered
2020-04-05 22:57:36 -04:00
Pedro Lopez
743ac93f6e
feat: allow setting timeouts via options
2020-04-03 01:49:16 -04:00
Pedro Lopez
0a7412cf17
feat: create groups
...
close #131
2020-04-03 01:45:06 -04:00
Pedro Lopez
6c43a2d2ed
fix: increase timeouts
...
close #130
2020-04-02 02:30:50 -04:00
Pedro Lopez
001c045c08
fix: only return undefined for ERROR_* media states
...
This was causing a regression as of 1.2.5 that caused media files sent by the client to not be properly downloaded
cc #111 @stevefold
2020-04-02 02:24:12 -04:00