Commit Graph

64 Commits

Author SHA1 Message Date
João Vitor Miranda
bb4ad11bfa feat: added ACK events (#73)
Implements ack change detection, making it possible to know when messages have been delivered, read, etc.

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
2020-02-26 22:59:46 -04:00
Pedro Lopez
1ebaf56617 Merge branch 'master' of https://github.com/pedroslopez/whatsapp-web.js 2020-02-26 00:40:51 -04:00
Pedro Lopez
60ee2ca522 feat: delete chat, clear chat 2020-02-26 00:39:33 -04:00
Aliyss Snow
132424ea08 feat: archive chats (#63) 2020-02-25 20:06:46 -04:00
sahalMoidu
5c9e76e23f feat: refresh qr code (#68)
close #60
2020-02-23 12:20:11 -04:00
Pedro Lopez
3c500a6474 Merge branch 'master' of https://github.com/pedroslopez/whatsapp-web.js 2020-02-22 17:28:15 -04:00
Pedro Lopez
1c60c83e80 feat: Delete messages 2020-02-22 17:28:03 -04:00
sahalMoidu
1840826e2b feat : Check if the given number is a whatsapp number (#54)
* feat : Check if the given number is a whatsapp number

- Avoids sending message to non whatsapp number
- Gets the id of the user from whatsapp server rather than generating on client
2020-02-17 09:10:07 -04:00
sahalMoidu
6ade08e814 Implemented changes mentioned in SimiPrambos PR#28 (#52)
* Implemented changes mentioned in SimiPrambos PR#28
To reflect new code structure
2020-02-14 17:53:28 -04:00
Pedro Lopez
67784bc797 feat: get current connection state
Note: This only partly works, since the state may not be updated on WhatsApp's end. In the case of not being able to reach the phone, the state is only updated when the user performs an action, such as sending a message. This means that the state may be CONNECTED when we check, but the phone's really not connected.

ref #43
2020-02-11 22:26:33 -04:00
Fernando Cardoso
e385563883 Initialize the Script with the first browser tab (#47)
Suggestion for the script to start under the first tab of the browser, in order to reduce memory consumption.
2020-02-11 13:53:18 -04:00
Pedro Lopez
d44fd5d76a new event on connection state changed 2020-02-10 21:51:58 -04:00
Pedro Lopez
a293146ed8 fix: added timeout to accepted states
This makes the client more reliable since it doesn't quit as soon as it looses conection from the phone for a second. Messages should be queued by WhatsApp Web.
2020-02-10 21:44:56 -04:00
Pedro Lopez
ffe803306e fix: send message media
In some cases, the mediaBlob was not resolved correctly

ref: #38
2020-02-09 21:30:28 -04:00
Pedro Lopez
2607e6df3a fix: send message media in options object
An inconsistency in variable names was preventing media sent through the options object from being processed
2020-02-09 02:49:21 -04:00
Pedro Lopez
7deef27800 chore: mark version v1.0.0 2020-02-09 00:58:10 -04:00
Pedro Lopez
f947f75725 docs: add location to supported content types 2020-02-09 00:53:43 -04:00
Pedro Lopez
d1dba0f4c0 add disconnect reason 2020-02-09 00:53:00 -04:00
Pedro Lopez
64ed2c125b more message types 2020-02-09 00:46:00 -04:00
Pedro Lopez
5616613807 feat: Mention users, get user number from Contact model 2020-02-08 03:19:51 -04:00
Pedro Lopez
ef80f966ea fix: correctly get message contact in group chats 2020-02-08 03:18:32 -04:00
Pedro Lopez
edc2c7022d feat: change status message 2020-02-08 01:32:15 -04:00
Pedro Lopez
f2b286a319 feat: get contact's profile picture 2020-02-08 01:23:29 -04:00
Pedro Lopez
004312a99f expose some more fields on contacts 2020-02-08 01:17:06 -04:00
Pedro Lopez
2896aeb382 fix some doc related stuff 2020-02-08 01:01:33 -04:00
Pedro Lopez
7b229a39a4 feat: Send and receive location 2020-02-08 00:46:55 -04:00
Aliyss Snow
4b1768450f Get Mentions (#35) 2020-02-06 15:47:46 -04:00
Pedro Lopez
2f0480c80e docs: add more documentation 2020-02-04 23:04:51 -04:00
Pedro Lopez
a098d61b03 feat: send messages with attachments
close #3
2020-02-04 21:11:20 -04:00
Pedro Lopez
e717915f94 fix: don't get chat after accepting invite
This will now only return the chatId, since getting the chat at this point is unreliable.
2020-02-02 20:37:51 -04:00
Aliyss Snow
e2351db722 Added Contact Model (#34) 2020-02-02 19:08:36 -04:00
Aliyss Snow
b597e4a504 Added delete event message(#33)
* A hacky way of doing things but seems to work. Also after client restart.
2020-02-02 19:00:23 -04:00
Pedro Lopez
cc477f9545 Add eslint config and fix linting issues 2020-02-02 14:50:04 -04:00
Pedro Lopez
5b9413de5c [FIX] Expose Wap module
Setting group description and title did not work due to whatsapp no longer exposing it as it was previously.
2020-02-02 13:44:54 -04:00
Pedro Lopez
caa8598ec1 [+] Join groups by invite code 2020-02-02 00:52:51 -04:00
Pedro Lopez
a6cc5e5bf2 [+] Get quoted message
[FIX] Properly reply to messages sent by the current user
2020-02-01 22:41:53 -04:00
Pedro S. Lopez
ba8edc8d40 [+] Expose information about the logged in client (#19) 2020-02-01 21:16:03 -04:00
Pedro Lopez
88c56b1371 Return new message after sending 2020-02-01 19:34:28 -04:00
Gabriel Alvarez
d2889a8f03 Improvement in KEEP_PHONE_CONNECTED_IMG_SELECTOR
I change the selector from 'class' to 'attribute = value' to try to get
more permanent results
2020-01-31 16:17:58 -03:00
Pedro Lopez
6b1b51eacd Increase successful connection timeout 2020-01-17 22:06:04 -04:00
Pedro Lopez
2dc53e0820 [FIX] Connection success detection selector changed
close #31
2020-01-17 22:05:05 -04:00
Pedro Lopez
bea1ebf480 [FIX] Get QR code directly from canvas element (fix #26) 2019-12-04 02:58:55 -04:00
Pedro Lopez
64912dccfd Download message attachments (images, documents, etc) 2019-11-24 04:23:08 -04:00
Pedro Lopez
512b21e522 [FIX] Use STREAM module for getting connection state instead of removed Conn model 2019-10-10 22:05:24 -04:00
Renato
46a7d025fe searches for Chat module instead 2019-10-10 01:46:17 -03:00
Pedro Lopez
517e22381a [-] Remove method to add extra serialized props. This does not work, and the prop being added was already included. 2019-09-08 03:54:44 -04:00
Pedro Lopez
18199d8120 [+] New message_create event that is fired on all message creations.
A new property "fromMe" has also been added to messages.

Close #8
2019-09-08 03:48:19 -04:00
Pedro Lopez
cde0034d93 [+] Implement function to get all open chats.
Close #14
2019-09-08 03:18:40 -04:00
Pedro Lopez
cdfa1760eb [FIX] Implement setDescription and setSubject for groups (close #6) 2019-09-08 03:09:07 -04:00
Pedro Lopez
cf8c54879e Load moduleRaid from GitHub 2019-09-08 00:53:38 -04:00