Commit graph

623 commits

Author SHA1 Message Date
WWebJS Bot
b787eee218 2.0.0-alpha.0 2023-08-10 04:24:48 +00:00
alechkos
9b827541e6
fix for findImpl (#2390) 2023-08-10 07:24:06 +03:00
WWebJS Bot
9a6466edbc 1.21.1-alpha.1 2023-08-09 16:28:38 +00:00
alechkos
3be7566483
fix: CallCollection (#2385)
* fix: changed module for CallCollection

* code refactored

* compareWwebVersions fixed and moved to window.compareWwebVersions

* code refactoring
2023-08-09 19:27:24 +03:00
RendyCraft047
1ebcdee3b9
Update GroupChat.js (#2382)
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2023-08-08 18:24:22 +03:00
Roi Greenberg
096e84b0a9
fix fromMe in chat.fetchMessages (#2314)
* fix fromMe

* Fix Test

* fix crash in getchat

---------

Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2023-08-08 18:16:02 +03:00
Christophe
776c1b152e
Improve logout() LocalAuth logic (#2175)
* Improve logout() LocalAuth logic
- Wait for browser to close to prevent Exception on Windows

* Update Client.js

* Update LocalAuth.js

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2023-08-07 23:51:31 +03:00
WWebJS Bot
d272389246 1.21.1-alpha.0 2023-08-07 17:28:33 +00:00
Shir Serlui
b4d82d8425
Feat: get message by id (#1634)
* feat: get message by id

Add the feature of getting messages by id.
It's loads messages that are not loaded in the Store.Msg, and add them into the Store.Msg.
I don't use the draft because this is already work

* Fix typo

* Fix for test

* Update index.d.ts

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Codeboss <131376628+codebossdev@users.noreply.github.com>
2023-08-07 14:10:11 -03:00
Guilherme Mascarenhas
41e59efa72
fix: Client.getChatById(): Cannot read properties of undefined (reading '_serialized') (#2225)
* fix: Cannot read properties of undefined (reading '_serialized')

* Update supported WhatsApp Web version to v2.2321.6

* Revert "Update WhatsApp Web Version (2.2321.6)"

---------

Co-authored-by: guicuton <guicuton@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2023-08-07 18:57:23 +03:00
RendyCraft047
d959645bc3
fix: group invite v4 (#2321)
* Update Injected.js

* Update Client.js

* fix changes

* make it simple

* fix if undefined

---------

Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2023-08-07 06:37:56 +02:00
alechkos
dce964d934
fix: group_join event (#2320)
* added linked_group_join subtype

* typo fixed from pr#2027

* fix: ESLint
2023-08-06 09:30:59 +03:00
alechkos
8ff5bceca0
feat: send photo/video as a view once message (#2317)
* added isViewOnce property

* docs updated

* added usage example

* fix: ESLint
2023-07-31 12:53:35 +03:00
alechkos
c8c2f09f20
fix: Contact (#2325)
* fixed: contact info retrieving

* fixed: block method

* fixed: isBlocked property is now changeble

* added inner function to compare between WWeb versions

The function compares the currently used WWeb version with the version that requires the code changes. Its purpose is to ensure the stable operation of the library across different WWeb versions.

* added: todo remove useOldImplementation

* improved inner function to compare WWeb versions

* inner function: added support for beta versions

* added support for business accounts

* module queries changed to strings

* fixed check for wweb beta versions

* updated to throw a custom error message

* minor changes in inner function
2023-07-31 09:41:17 +03:00
tofers
8fc6e6098c
feat: add or remove labels (#1915)
* add or remove labels

* Strings use singlequote

* add event chat change labels

* Revert "add event chat change labels"
2023-06-25 16:25:49 -03:00
tofers
8e8d0c9b3e
feat: Edit message (#2254)
* function edit message
2023-06-15 12:49:38 -03:00
rafael-ofc
a91bf1c762
Improvements in mentionedJidList and content, referring to sendMessage (#2166)
* Improvements in mentions and content, referring to sendMessage

* Add function in MessageMedia

* fix: remove fromAll

* Update src/Client.js

* Update src/Client.js

* Update Client.js

---------

Co-authored-by: Rafael <you@example.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2023-05-31 15:55:45 +03:00
Pedro S Lopez
01d23e8dff chore: mark version v1.21.0 2023-05-29 02:46:45 -04:00
Humberto Zambrano
3dd4463478
Fix caption in attached document sending messages (#2226)
* Caption for attached document

* Update Injected.js

---------

Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
2023-05-29 02:38:59 -04:00
github-actions[bot]
1810852c01
Update supported WhatsApp Web version to v2.2322.15 (#2236)
Co-authored-by: pedroslopez <pedroslopez@users.noreply.github.com>
2023-05-29 02:33:06 -04:00
Pedro S. Lopez
2574c9d487
Revert "Update supported WhatsApp Web version to v2.2322.15 (#2004)" (#2235)
This reverts commit 7cf4532258.
2023-05-29 02:31:42 -04:00
github-actions[bot]
7cf4532258
Update supported WhatsApp Web version to v2.2322.15 (#2004)
Co-authored-by: pedroslopez <pedroslopez@users.noreply.github.com>
2023-05-29 02:31:25 -04:00
Pedro S. Lopez
8ae0c0d484
feat(reliability): WhatsApp Web version caching (#1847)
* feat: use specific whatsapp web version

* add constants to version updater

* configurable caches

* rename

* typings

* rm extraneous export

* missing from the rename

* rm version resolver

* match readme version

* use try-catch

* only persist if cache miss
2023-05-29 02:31:03 -04:00
Pedro S Lopez
915763a8d0 chore: mark version v1.20.0 2023-05-19 23:58:10 -04:00
WWebJS Bot
2b8eb518ed 1.20.0-alpha.0 2023-05-19 22:17:56 +00:00
tofers
081b455fa5
hotfix: newId and deviceType (#2196)
* update method generate Msg id, newId to newIdV2

* replace newId and await in version WA 2.2321.6

* fix deviceType
2023-05-19 16:25:54 +00:00
Pierluca Lino
d8fd457914
feat: Optional proxy autentication (#2143) 2023-04-20 15:19:57 +00:00
tofers
37724f6959
fix: msg.chat (#2139)
* fix function openChatWindowAt

* fix star \ unstar

* fix function delete

* fix closeRightDrawer
2023-04-19 02:50:08 +03:00
Gabryel Rigol
f8cfc7889c
Fix isStatus (#2108)
* Fix isStatus

* Fiz isStatus
2023-04-09 16:22:56 +03:00
alechkos
f23ab82565
feat: added contact_changed event (#2027) 2023-04-01 19:30:12 +00:00
Wictor Nogueira
f44555713d
Feat: Add chat_removed and chat_archived events (#1778)
* Add chat_removed and chat_archived events

* Make eslint happy

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Aliyss Snow <33941859+Aliyss@users.noreply.github.com>
2023-04-01 19:19:11 +00:00
alechkos
9f15499592
feat: added group_admin_changed event (#2018)
* docs: updated

* added group-admin-change event

* minor changes

* added usage example

* minor changes: code docs updated
2023-04-01 16:40:47 +00:00
Rajeh Taher
ac7df25075
Fix media renders (#1981)
* Fixed

* Update src/util/Injected.js

---------

Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
2023-04-01 17:09:28 +03:00
tofers
812ff0ddfc
lastMessage in chat (#1606)
* lastMessage in chat

* lastMessage info

* Update src/util/Injected.js

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>

* fix  serialize msg

* markup

---------

Co-authored-by: tofers <tofers90>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2023-04-01 17:07:39 +03:00
tofers
780005a81a
feat: load reactions in message (#1897)
* msg find reactions

* reaction list

* return hasReaction  only true or false

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2023-04-01 17:03:21 +03:00
Vinicius Tavares
c44af204a1
Add the 'unread_count' event. Listen to changes on Chat.unreadCount (#2059)
* Initial commit

* Update index.d.ts

* The functions was returning a 'brief' chat data. With this, it will return full Chat model..

* Eslint suggested fixex

---------

Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2023-04-01 16:59:57 +03:00
Wictor Nogueira
dc16bbbdac
Feat: change profile/group picture (#1916)
* feat: pfp

* Make eslint happy

* Fix typo

* Fix missing comma

* Update src/util/Injected.js

* ESLint

* Update src/util/Injected.js

* mfw purp breaks indentation

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2023-04-01 04:21:09 +03:00
Mohammed Khan
4846625119
fixed version id number (#2087) 2023-03-29 03:50:23 +00:00
Pedro Lopez
ea6c130edd chore: mark version v1.19.5 2023-03-18 18:17:59 -04:00
Macley Sousa
1854656648
fix: send media (#2074) 2023-03-18 18:12:39 -04:00
Italo Castro
109fbce8db
Fix Message.js (#2080)
Fixes https://github.com/pedroslopez/whatsapp-web.js/issues/2078
2023-03-18 18:11:38 -04:00
Pedro Lopez
6f2ad1773e chore: mark version v1.19.4 2023-02-11 15:27:30 -08:00
github-actions[bot]
313bd085b3
Update supported WhatsApp Web version to v2.2306.7 (#1954)
Co-authored-by: pedroslopez <pedroslopez@users.noreply.github.com>
2023-02-11 15:26:28 -08:00
tofers
1294170a25
Fix mute chat (#1982)
* fix function set mute chat

* chat mute new object
2023-02-11 15:25:54 -08:00
Pedro Lopez
617e0b89d5 merge fix 2023-02-11 15:22:30 -08:00
tofers
842a342f72
Fixing the queryWidExists function (#1989)
* Update Injected.js

fix function queryWidExists

* Update Injected.js

support WA old version 2.2305.7

---------

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
2023-02-11 15:20:21 -08:00
Pedro Lopez
e8d4874b26 fix getNumberId 2023-02-11 15:18:06 -08:00
Michal Serlui
f1607752dd
try to fix queryWidExists (#1987) 2023-02-10 11:06:20 -03:00
Pedro Lopez
97283c84c7 chore: mark version v1.19.3 2023-01-28 00:35:27 -04:00
WWebJS Bot
23cea1bac0 1.20.0-alpha.0 2023-01-26 21:54:22 +00:00