Commit Graph

85 Commits

Author SHA1 Message Date
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
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
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
5616613807 feat: Mention users, get user number from Contact model 2020-02-08 03:19:51 -04:00
Pedro Lopez
edc2c7022d feat: change status message 2020-02-08 01:32:15 -04:00
Pedro Lopez
7b229a39a4 feat: Send and receive location 2020-02-08 00:46:55 -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
caa8598ec1 [+] Join groups by invite code 2020-02-02 00:52:51 -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
cf8c54879e Load moduleRaid from GitHub 2019-09-08 00:53:38 -04:00
Pedro Lopez
bf0fe8496c [FIX] Use WhatsApp's new sendTextMsgToChat function for sending messages 2019-05-29 22:42:43 -04:00
Pedro Lopez
48a9d7d7f7 [FIX] New selectors to detect QR code and auth success 2019-05-29 22:06:38 -04:00
Pedro S. Lopez
80690728e6 Remove unused import 2019-03-17 05:58:17 -04:00
Pedro Lopez
a7a7034e75 [ADD] Session restore functionality 2019-03-17 05:42:29 -04:00
Pedro Lopez
1b7376885d Add group chat functions, slight refactoring 2019-02-20 02:42:19 -04:00