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
Pedro Lopez
842c4f0e06
feat: check if ID is a valid whatsapp user
...
close #120
2020-03-29 22:58:08 -04:00
Pedro Lopez
2dddc781c5
fix: initialize takes no params
2020-03-29 21:47:47 -04:00
Pedro Lopez
80d5783f22
feat: new event for when media is uploaded
...
Messages created by the current client don't have attatched media on message_create because it is still being uploaded and sent. This event allows you to detect when the media has been properly sent so it can be downloaded.
close #111
2020-03-22 20:38:26 -04:00
Pedro Lopez
cb54487197
feat: add ack to message model
...
close #108
2020-03-22 20:00:53 -04:00
Steven L
d08b343815
Added "restartOnAuthFail" as an option ( #112 )
...
- When true, the sessions passed is discarded when reinitialized.
2020-03-22 19:52:46 -04:00
Pedro Lopez
25b96378c7
fix: properly handle unresolved media
2020-03-15 15:29:56 -04:00
Pedro S. Lopez
5934ec531f
fix: return undefined when attempting to download nonexistent media
...
This could occur when the user has deleted the media and it can no longer be downloaded.
2020-03-15 15:20:50 -04:00
Pedro Lopez
65542f6025
chore/fix: update requires for new moduleraid package
...
For got to do this on the previous release
2020-03-15 02:05:20 -04:00
Pedro Lopez
8599a6d918
fix: properly download media if it has not been loaded
...
This issue occurred when attempting to download media from old messages.
2020-03-14 17:37:59 -04:00
Pedro Lopez
4fe7fa93b9
fix: delegate all event handlers
...
Attaching these events directly to puppeteer functions apparently blocks and causes CPU usage to go up, slowing everything down.
related #88 , 8bdecad
2020-03-13 17:44:20 -04:00
Pedro Lopez
8bdecadba4
fix: don't call event handler for new messages directly to puppeteer
...
This was creating performance issues, specially on startup when the initial set of messages were being loaded for a client with many chats.
2020-03-13 00:09:43 -04:00
Pedro Lopez
49aacec4a7
fix: correctly splice and merge fetched messages
...
This was eliminating messages in the middle of the array instead of eliminating older messages to reach the specified limit.
close #97
2020-03-05 21:18:10 -04:00
Pedro Lopez
6e76fece91
docs: add jsdoc strings for group events
2020-03-01 14:58:06 -04:00
sahalMoidu
98458f760e
feat : send conversation seen ( #66 )
...
After this commit, chats will be automatically marked as seen when a message is sent to it. If this is not the intended behavior, `sendSeen: false` can be set as part of the options object.
You can also manually mark a conversation as seen by calling the sendSeen() function on the Chat.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-03-01 14:42:35 -04:00
Aliyss Snow
48b9ae1e81
feat: listen to group events ( #90 )
...
This allows you to listen for user joins or leaves, description updates, subject updates, picture updates, and group settings updates.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com >
2020-03-01 14:32:58 -04:00
Aliyss Snow
588dc93c17
chore: added index.js for structures ( #91 )
...
- Allows for a cleaner integration (imo) in Client.js
2020-03-01 13:59:09 -04:00
Pedro Lopez
16fe865a9c
feat: fetch chat messages
...
This will automatically fetch messages until it reaches the specified limit or there are no more messages. In the future, this should be extended to fetch messages before, after or around a specific message/date by adding props to the searchOptions object.
close #51
2020-02-29 16:01:13 -04:00
Pedro Lopez
b07b38bbe8
feat: Simulate recording audio in chat, clear recording/typing state, standardize chatstate change function names
2020-02-29 14:07:47 -04:00