Commit Graph

32 Commits

Author SHA1 Message Date
chan32167
c53b091484 Update example.ts 2020-11-22 18:45:07 -05:00
Adhiraj Singh
c69d3832de Add WAChatUpdate 2020-11-18 23:41:51 +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
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
cc722a5138 Callbacks via EventEmitter + possible memory leak fix 2020-10-28 16:10:28 +05:30
Adhiraj Singh
6c000ab093 Added logger, handled checksum fail 2020-10-12 20:32:32 +05:30
Adhiraj Singh
210b467b68 Close before terminate + update presence on message receive 2020-10-11 23:08:48 +05:30
Adhiraj
64c9b7449e Chat ordering update 2020-10-04 18:29:35 +05:30
Adhiraj
0d13a15904 Handle updating of credentials 2020-10-02 14:19:04 +05:30
Adhiraj
3a878ae193 Updates
- removed timeout, use maxIdleTimeMs
- made messages a keyedDB to better utitlize message cache
- possible fix for group ID bug
2020-09-27 13:51:36 +05:30
Adhiraj
f12f6fd90d added proxy support 2020-09-06 15:48:01 +05:30
Adhiraj
218c9bcc18 Added function to change read status for chat, updated connect 2020-09-01 12:13:25 +05:30
Adhiraj
420c707195 fixed bug with stickers 2020-08-31 16:28:56 +05:30
Adhiraj
0af9f8fbe4 More reliable connect with automatic retries + default connect options 2020-08-31 14:39:21 +05:30
Adhiraj
828be7f240 renamed user.id to user.jid 2020-08-28 20:22:35 +05:30
Adhiraj
890fb726f1 Changes
- Separated message-status-update & message-update
- Removed contact storage & waiting for contacts. General connect speed should improve by 10%-20%
- Added `contacts-received` event
2020-08-28 20:01:48 +05:30
Adhiraj
ea36aabb6c better connections 2020-08-22 17:46:41 +05:30
Adhiraj
47021c34bf correct message updates 2020-08-19 17:43:30 +05:30
Adhiraj
95d2567e76 Initial V3.0 2020-08-19 14:19:30 +05:30
Adhiraj
002d304041 Got rid of WAClient, deprecated code. Prep for V3
Layered classes based on hierarchy as well.
2020-08-16 17:51:29 +05:30
Adhiraj
b06f53401f Updates
-Removed unread messages while connecting
-Added KeyedDB integration
-pdf mimetype fix + mimetype can be string now
2020-07-31 17:32:15 +05:30
Adhiraj
da73905b5e Depracations + Semantic Changes 2020-07-19 13:21:44 +05:30
Adhiraj
a04a908b94 Log level update 2020-07-16 12:52:19 +05:30
Adhiraj
d87e4e5897 Unified unexpected disconnect & takeover events 2020-07-13 16:32:52 +05:30
Adhiraj
8b859b9376 Log out detection 2020-07-13 14:42:37 +05:30
Adhiraj
2a7d179822 Takeover conflict implementation 2020-07-10 12:44:31 +05:30
Adhiraj Singh
1f7e9c8142 Moved to src 2020-07-01 18:14:47 +05:30
Adhiraj Singh
82f9529c9e Baileys 2.0 Init 2020-07-01 16:18:26 +05:30
Adhiraj Singh
4d83f6dd53 Typescript update 2020-07-01 13:25:08 +05:30
Adhiraj Singh
e50c1cbaf1 Initial Conversion to typescript 2020-06-30 20:57:49 +05:30