Commit Graph

254 Commits

Author SHA1 Message Date
Adhiraj Singh
eb7b8506a9 Added support for sending + toggling disappearing messages 2020-12-12 00:21:11 +05:30
Adhiraj Singh
a778f999a9 Log link preview error 2020-12-11 15:43:14 +05:30
Adhiraj Singh
376a43f116 Duplicate message after reconnect fix 2020-12-09 00:01:37 +05:30
Adhiraj Singh
caf82a46a8 Indexing change + missing messages detection 2020-12-08 18:06:20 +05:30
Adhiraj Singh
69ec8b97b1 Update 1.Validation.ts 2020-12-06 19:46:20 +05:30
Adhiraj Singh
a464923402 Presence bug fix 2020-12-06 15:32:39 +05:30
Adhiraj Singh
95aedba87f Group participants now derive from WAContact 2020-12-06 14:29:48 +05:30
Adhiraj Singh
cbb8301e07 Update 1.Validation.ts 2020-12-05 14:23:28 +05:30
Adhiraj Singh
4a6c72c36c Invalid session fix 2020-12-04 16:02:16 +05:30
Adhiraj Singh
6d7dc4d9fe Manage group metdata state in Baileys + Remove presence from Contact 2020-12-03 13:16:37 +05:30
Adhiraj Singh
d4b453f0e5 Bug fix for sendLoginReq 2020-12-02 14:21:06 +05:30
Adhiraj Singh
84edfe1ca0 Archive bug fix + Delete bug fix + assert deprecation update 2020-11-30 19:21:10 +05:30
Adhiraj Singh
196be24e4f Update messageID generation + use archive property in chat key 2020-11-28 13:26:31 +05:30
Adhiraj Singh
a7d51f9831 possible undefined jid fix 2020-11-27 19:52:34 +05:30
Adhiraj Singh
a0a47145a6 Use create instead of fromObject 2020-11-27 17:56:06 +05:30
Adhiraj Singh
7dc083b6e5 Update init method to try login multiple times + use WA ttl for QR gen 2020-11-26 17:08:18 +05:30
Adhiraj Singh
242328abdc Presence fixes 2020-11-24 18:56:07 +05:30
Adhiraj Singh
698e248076 Merge pull request #231 from Fr4nZ82/patch-1
Pass a promise on loadAllMessages
2020-11-22 18:05:27 +05:30
Fr4nZ82
b1868e8298 Update 7.MessagesExtra.ts 2020-11-22 05:33:18 +01:00
Adhiraj Singh
9f8f244b66 Added offline check for isOnWhatsApp 2020-11-20 12:50:14 +05:30
Adhiraj Singh
ba8b8c693a Download media from ephemeral messages 2020-11-19 00:26:17 +05:30
Adhiraj Singh
c69d3832de Add WAChatUpdate 2020-11-18 23:41:51 +05:30
Adhiraj Singh
abde6563c9 Support decoding disappearing messages + events bug fix 2020-11-18 23:05:57 +05:30
Adhiraj Singh
be92f5d33c presence update bug fix 2020-11-17 17:27:09 +05:30
Adhiraj Singh
f29c5cf206 Add name to presence update 2020-11-17 17:12:14 +05:30
Adhiraj Singh
cea702b5a3 better presence handling via chat-update 2020-11-17 16:58:57 +05:30
Adhiraj Singh
f68a14bff8 Added profile picture to contact 2020-11-17 13:19:19 +05:30
Adhiraj Singh
781f586b6f Update 4.Events.ts 2020-11-15 15:10:05 +05:30
Adhiraj Singh
2a01add13e Better search for numbers + chat fix 2020-11-15 14:05:32 +05:30
Adhiraj Singh
11d1dda3f5 Fix pendingRequestTimeout bug 2020-11-14 16:01:02 +05:30
Adhiraj Singh
7a80bc1b92 Detect new login 2020-11-14 14:12:04 +05:30
Fr4nZ82
9a4b755bd6 Pass a promise on loadMessage
I've changed because i need to write to files a big chat history and appendFileSync is deprecated
2020-11-14 04:28:29 +01:00
Adhiraj Singh
6d02d405a7 Major redo with respect to chats/contacts -- read desc
Waiting for chats & contacts is hella unreliable, so I've put them as events
1. receive chats via the `chats-received` event. If new chats are found, the flag for that is sent as well
2. receive contacts via the `contacts-received` event
3. When WA sends older messages, the `chats-update` or `chat-update` event is triggered
4. Baileys keeps track of all the changed conversations between connects

Connects almost always take less than 10 seconds!
2020-11-13 23:15:16 +05:30
Adhiraj Singh
eace0c1795 Deprecated message-new & message-update + fix presence update for groups
The chat-update event is fired now when a message is received/updated
2020-11-13 16:07:08 +05:30
Adhiraj Singh
eaf56f6d71 group promote/demote event fix + archive fix + group events rework 2020-11-12 13:46:10 +05:30
Adhiraj Singh
c4548f756b Update version 2020-11-10 12:15:38 +05:30
Adhiraj Singh
442c03a05e Update isOnWhatsApp 2020-11-07 13:47:21 +05:30
Adhiraj Singh
75aa1f9d81 Chats not being received bug fix 2020-11-05 16:57:27 +05:30
Adhiraj Singh
155df2bc4f Android chat read fix + debounceTimeout bug fix 2020-11-03 13:24:56 +05:30
Adhiraj Singh
e0fd554aa0 Update 0.Base.ts 2020-11-01 17:37:22 +05:30
Adhiraj Singh
71d1d0cc8e Update def.proto 2020-10-30 18:41:00 +05:30
Adhiraj Singh
69da12c33c handle tags via EventEmitter + replace 'intermediate-close' with 'ws-close' 2020-10-30 17:42:45 +05:30
Adhiraj Singh
aa40d63494 Update 0.Base.ts 2020-10-29 17:30:02 +05:30
Adhiraj Singh
92c15b477b EventEmitter fix 2020-10-29 17:29:38 +05:30
Adhiraj Singh
7b2aa7dd8a Ensure @s.whatsapp.net for message-update 2020-10-29 16:44:29 +05:30
Adhiraj Singh
f071a796c4 Update 6.MessagesSend.ts 2020-10-29 13:17:25 +05:30
Adhiraj Singh
4b52d0e8c9 Possible QR scan bug fix 2020-10-28 23:20:09 +05:30
Adhiraj Singh
5d3048ce38 Moved message parsing logic outside try/catch 2020-10-28 22:44:23 +05:30
Adhiraj Singh
57c46e3122 regen QR call rejectPending 2020-10-28 22:20:55 +05:30
Adhiraj Singh
0a56406da3 Removed console.log 2020-10-28 19:23:29 +05:30