Commit Graph

101 Commits

Author SHA1 Message Date
Adhiraj Singh
3d0704a317 feat: cleaner auth state management
1. removes the "auth-state.update" event since it was bloated and fairly unnecessary
2. adds "creds.update" event that only sends the updated properties of the auth credentials
3. ensure the auth creds are not mutated anywhere, but only with the "creds.update" event
4. Separates the signal credentials from the auth credentials (kinda in progress)
5. in memory key store requires a save function to let one know when to save the keys

!BREAKING_CHANGE
2021-11-20 16:21:56 +05:30
yanun
3590c1f569 Update README.md (#879) 2021-11-19 18:40:34 +05:30
azudin
e250560088 Update README.md (#816) 2021-11-15 08:14:55 +05:30
Ilya Borodin
ae80566c0e Group update description (#859)
* Added groupUpdateDescription

* Updated README

Co-authored-by: Ilya Borodin <ilya.borodin@botconversa.com.br>
2021-11-15 08:09:10 +05:30
Adhiraj Singh
d0b11dadbf add high res picture fetch 2021-10-23 10:07:55 +05:30
Adhiraj Singh
466cb614e6 Update README.md 2021-10-15 23:59:51 +05:30
Adhiraj Singh
b3c1063a3f update download media example 2021-09-29 13:36:37 +05:30
Adhiraj Singh
647c16b46c Update README.md 2021-09-29 12:44:06 +05:30
Adhiraj Singh
17e915e273 rename package to baileys-md 2021-09-26 23:00:34 +05:30
Adhiraj Singh
f1527a9f6b separate out crypto utils 2021-09-23 22:37:33 +05:30
Adhiraj Singh
f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30
bhavya32
0dea009f9c Added Option to skip QR Logging in Terminal (#552)
QR logging can now be disabled using connect option.
2021-06-27 19:02:47 +05:30
Hitesh Yadav
eb55760eac Updating README for fixes in event type. (#480) 2021-05-05 13:22:24 +05:30
Ibnu syawal
b1ea0e31da Added method to revokes link of group chat (#421) 2021-03-28 20:09:55 +05:30
Adhiraj Singh
7e79b88c78 Update README.md 2021-03-26 10:45:55 +05:30
Ibnu syawal
08bdb426c9 Added method to join group (#417)
* Added method to join group

* Added method to join group in README
2021-03-24 23:19:00 +05:30
Nils
e4bc0f6a61 Update connectOptions default in README (#394) 2021-03-19 23:53:04 +05:30
Nils
d469fdb3bd typo: retreive -> retrieve (#371) 2021-02-26 23:33:20 +05:30
Adhiraj Singh
e1952ff349 Don't save original if not required for media + update readme 2021-01-15 12:16:09 +05:30
Adhiraj Singh
96a6dc7e6d General cleanup 2021-01-04 21:21:43 +05:30
Adhiraj Singh
6cc5a910f7 Completely remove message-status-update & user-status-update 2021-01-04 14:19:44 +05:30
Edgard
0bf0ec6490 Added method to block/unblock user (close #233) 2020-12-14 16:05:57 -03:00
Adhiraj Singh
eb7b8506a9 Added support for sending + toggling disappearing messages 2020-12-12 00:21:11 +05:30
Adhiraj Singh
84edfe1ca0 Archive bug fix + Delete bug fix + assert deprecation update 2020-11-30 19:21:10 +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
cd90d66c5e Update group docs 2020-11-22 22:00:23 +05:30
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
cea702b5a3 better presence handling via chat-update 2020-11-17 16:58:57 +05:30
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
f636cea26c Link Discord 2020-11-07 14:24:04 +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
69da12c33c handle tags via EventEmitter + replace 'intermediate-close' with 'ws-close' 2020-10-30 17:42:45 +05:30
Adhiraj Singh
cc722a5138 Callbacks via EventEmitter + possible memory leak fix 2020-10-28 16:10:28 +05:30
Adhiraj Singh
6391e37198 Change default connect options 2020-10-15 16:53:48 +05:30
Adhiraj Singh
4dde319256 Update README.md 2020-10-12 20:33:41 +05:30
Adhiraj Singh
210b467b68 Close before terminate + update presence on message receive 2020-10-11 23:08:48 +05:30
Adhiraj
0d13a15904 Handle updating of credentials 2020-10-02 14:19:04 +05:30
Adhiraj
30cee92758 PTT Audio + Automatic link preview generation + Minor changes 2020-09-22 22:50:29 +05:30
Adhiraj
f12f6fd90d added proxy support 2020-09-06 15:48:01 +05:30
Adhiraj
3d5b37fc44 compute chat deltas with connect 2020-09-03 18:25:43 +05:30
Adhiraj
33448690a4 audio tests 2020-09-03 10:25:00 +05:30
Adhiraj
218c9bcc18 Added function to change read status for chat, updated connect 2020-09-01 12:13:25 +05:30
Adhiraj
0af9f8fbe4 More reliable connect with automatic retries + default connect options 2020-08-31 14:39:21 +05:30
Adhiraj
d7e3312b1d Simpler chat modifications 2020-08-23 16:49:15 +05:30
Adhiraj
ea36aabb6c better connections 2020-08-22 17:46:41 +05:30
Adhiraj
a6c8fee814 Reconnect fixes 2020-08-19 16:06:20 +05:30