alechkos
f9db14d185
feat: Event messages ( #3345 )
...
* feat: add createCallLink function
* feat: create Event class
* feat: add functionality for sending Events
* feat: add editEvent function
* refactor: send event location prop as wa does
* refactor: combine modules
* feat: add sendResponseToEvent function
* fix: createEventCallLink parameter
* docs: add documentation
* fix: eslint
* refactor: change timestamp to Date for the user's convenience
* refactor: rename 'Event' to 'ScheduledEvent' for more clarity
* style: fix typo in inner function
* refactor: remove unnecessary inner function
* refactor: rename 'sendResponseToEvent' to 'sendResponseToScheduledEvent' for more clarity
* fix: update the module name
2025-08-09 00:36:27 +03:00
alechkos
ab321f3d7e
fix: Message.pin and Message.unpin ( #3319 )
...
* fix: update function to wweb version >2.3000.0
* feat: add foolproof check
* fix: override internal function correctly
2025-08-09 00:35:40 +03:00
alechkos
18b1d32825
feat: get pinned messages ( #3004 )
...
* feat: add getPinnedMessage method
* docs: add docs for the method
* chore: fix eslint
* refactor: change logic of getting pinned messages
* refactor: combine all PinnedMsgUtils
* chore: remove comments and mark as ready for review
* style: fix typo
Co-authored-by: crazynds <36674096+crazynds@users.noreply.github.com>
---------
Co-authored-by: crazynds <36674096+crazynds@users.noreply.github.com>
2025-08-09 00:34:52 +03:00
Eniola Osabiya
44418e66c2
fix(types): update mentions type in MessageEditOptions ( #3691 )
...
* fix(types): update mentions type in MessageEditOptions #2166
* style: fix typos
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-07 09:54:04 +03:00
BenyFilho
35133a72fc
Fix Message Forward ( #3680 )
...
* Fix Message Forward
* Fix Message Forward
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-06 15:51:36 +03:00
alechkos
ca30ac4b18
feat: customise linked device name ( #3325 )
...
* feat: add functionality for setting device and browser names
* feat: add usage example
* feat: add usage example
* docs: add docs for new functionality
* docs: add missing property
* docs: supplement the implementation documentation
2025-08-06 15:50:42 +03:00
BenyFilho
81fd090e36
fix: Client.createGroup + GroupChat.addParticipants ( #3670 )
...
* Adjustment addParticipants
* createGroup fully refactored, fixed bugs, added creation options and updated docs
* fix: eslint fix
* refactor: GroupChat.addParticipants fully refactored
* fix: eslint fix
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-08-01 06:43:45 +03:00
BenyFilho
81fb154a9f
feat: getContactLidAndPhone ( #3673 )
...
* Add method getContactLidOrPhone
* Add method getContactLidOrPhone
* Add method getContactLidOrPhone
* Add method getContactLidOrPhone
* Add method getContactLidOrPhone
* Add method getContactLidOrPhone
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* Add method getContactLidOrPhone
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* Add method getContactLidOrPhone
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* Add method getContactLidOrPhone
* Delete docs/index.html
* Delete docs/Client.html
* Create Client.html
* Create index.html
* Update to return the object
* Update to return an object
* Update Client.js to return both objects lid and phone
* Update Client.js to return both objects lid and phone
* Update src/Client.js
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* Update src/Client.js
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* Update index.d.ts
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* refactor: rename function name for more clarity
* Change accept and return Array
* Change accept and return Array
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-07-29 17:39:39 +03:00
devlikeapro
bd08b69c87
Fix send seen on chat - Stream markAvailable ( #3663 )
...
fix #3540
2025-07-20 11:07:15 +03:00
WWebJS Bot
fe906afd44
chore(): generate docs
2025-06-30 06:41:47 +00:00
WWebJS Bot
0bda2bc85f
1.31.1-alpha.0
2025-06-30 06:41:28 +00:00
Ajetunmobi Isaac
eaa8445ec0
fix error when processing poll messages without messageSecret in channels ( #3617 )
...
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2025-06-30 09:40:14 +03:00
Swaraj Chavan
fcb58d3070
Fix TS2371 error in requestPairingCode type declaration ( #3622 )
2025-06-30 09:33:54 +03:00
WWebJS Bot
6c75d185c5
chore(): generate docs
2025-06-26 18:19:06 +00:00
WWebJS Bot
8ab5c88e19
1.31.0
2025-06-26 18:18:46 +00:00
BenyFilho
90f2222df0
Fix .sendMessage return ( #3612 )
...
Fix sendMessage return
2025-06-26 21:16:20 +03:00
dependabot[bot]
6290627f9a
chore(deps): bump fluent-ffmpeg from 2.1.2 to 2.1.3 ( #3311 )
...
Bumps [fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg ) from 2.1.2 to 2.1.3.
- [Commits](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/compare/v2.1.2...v2.1.3 )
---
updated-dependencies:
- dependency-name: fluent-ffmpeg
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
2025-06-15 06:27:54 +00:00
WWebJS Bot
721990267e
chore(): generate docs
2025-06-11 11:54:43 +00:00
WWebJS Bot
5a590b2246
1.30.1-alpha.3
2025-06-11 11:54:22 +00:00
BenyFilho
daaa04445f
Fix Send Animated Sticker ( #3591 )
...
* Fix Send Animated Sitckers
* Update Utils.js
* Add a condition to ignore channels
Add a condition to ignore channels and keep compatibility.
* chore: mark channels as done feature
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-06-10 09:14:21 +03:00
WWebJS Bot
b2bb340046
chore(): generate docs
2025-06-05 22:41:13 +00:00
WWebJS Bot
1dd7125c59
1.30.1-alpha.2
2025-06-05 22:40:52 +00:00
alechkos
d2fe324e5b
fix: GroupChat.setPicture ( #3593 )
...
* fix: find collection if not in cache
* style: use camelcase
2025-06-05 20:21:38 +03:00
WWebJS Bot
e1b0cdc852
chore(): generate docs
2025-06-04 15:22:33 +00:00
WWebJS Bot
4227b046a6
1.30.1-alpha.1
2025-06-04 15:22:14 +00:00
alechkos
755cb6ce73
fix: window.WWebJS.getChatModel ( #3587 )
...
* fix: skip objects that don't have id
* fix: check for defined contact prop
2025-06-04 11:01:22 -03:00
NickWang
bbc089a625
fix: 🐛 quote message obj ( #3586 )
...
✅ Closes : #3585
2025-06-03 20:02:21 +03:00
WWebJS Bot
8d2ac31db3
chore(): generate docs
2025-06-02 19:21:59 +00:00
WWebJS Bot
c7e660ae6d
1.30.1-alpha.0
2025-06-02 19:21:40 +00:00
tofers
0ffb66fdb1
feat: send Media HD ( #3535 )
...
* Changing the quality of media downloads
* return function result
* add option sendImageAsHd
* change example
* fix quotes
* chore: remove unused code
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-06-02 22:19:22 +03:00
CyrilLacroix
c142c3bf93
fix(vcard): parse vcard module ( #1995 )
...
* fix(vcard): parse vcard module
* fix(vcard): eslint
* refactor: merge internal modules into VCardUtils
* fix: use proper modules for parsing vcards
* feat: add usage example
* chore: eslint fix
* fix: send vcard with email
Co-authored-by: KH Soh <2169449+khsoh@users.noreply.github.com>
* feat: add additional context to usage example
* refactor: revert module rename
---------
Co-authored-by: Codeboss <131376628+codebossdev@users.noreply.github.com>
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: KH Soh <2169449+khsoh@users.noreply.github.com>
2025-06-02 22:08:45 +03:00
Yusif Aliyev
94ce20b4a5
fix: change mentionedIds type from ChatId[] to string[] in Message ( #3581 )
...
* fix: change mentionedIds type from ChatId[] to string[] in Message interface
* fix: correct types for mentionedIds and groupMentions
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-06-02 21:05:18 +03:00
WWebJS Bot
57cdc88b6a
chore(): generate docs
2025-06-02 02:40:22 +00:00
WWebJS Bot
de7bbf41ff
1.30.0
2025-06-02 02:40:03 +00:00
alechkos
f7d0456a49
hotfix: fix window.WWebJS.getChatModel ( #3573 )
2025-06-01 23:37:21 -03:00
WWebJS Bot
2128f97729
chore(): generate docs
2025-05-31 18:37:38 +00:00
WWebJS Bot
477db5a7c9
1.29.0
2025-05-31 18:37:15 +00:00
alechkos
d0642b761c
feat: Channel ( #2620 )
...
* window.injectToFunction clarifications
* added createChannel method
* initial Channel class structure
* added getChannelById and getChannels methods
* added 4 methods to change channel metadata
* added deleteChannel method
* added subscribe to/unsubscribe from channel methods
* ecmaVersion updated to 2022
* added searchChannels method
* refactoring of: getChat, getChannel, getChatModel, getChannelModel
* removed Channel.canSend
* sendMessage updated to support channels [p1]
* createChannel: returns string if an error occupied
* added getSubscribers
* added mute/unmute methods
* searchChannels: minor update
* sendMessage updated to support channels [p2]
- added support to send image, sticker, gif and video
* [REFAC] refactored chat retrieving in getChatOrChannel
* [FEAT] added getChannelByInviteCode method
* [CHG] added check if channel creation enabled
* [FEAT] added sendChannelAdminInvitation method
* [WIP] preparations for sending polls [p1]
* [BUG] fixed some internal functions
* [BUG] fixed poll creation
* [COPY] renamed some internal functions
- window.WWebJS.getChatOrChannel renamed back to window.WWebJS.getChat
-window.WWebJS.getChatOrChannelModel renamed back to window.WWebJS.getChatModel
* fix: typo
* fix: send docs without caption
* fix: fixed some internal function
* fix: channel retrieving
* fix: fixed internal getChannelMetadata function
* fix: fixed channel admin can unsubscribe from channel
* feat: channel admin functionality
* feat: added fetchMessages method
Co-authored-by: tuke307 <58882912+tuke307@users.noreply.github.com>
* refactor: revert removing support for Buttons and Lists
Note: buttons and lists are deprecated
* refactor: revert parameter name from 'chatOrChannel' to 'chat'
* fix: support Node v12
* refactor: return 'undefined' in a case of falsy value
* refactor: use already created variable
* docs: fix 'countryCodes' property type
* fix: 'searchChannels' method fixed
* fix: add check in 'setReactionSetting' method
* sendNewsletterMessageJob requires a proper Msg Object in 2.24xx (#10 )
Co-authored-by: Sven Neumann <s.neumann@websix.de>
* style: fix broken link in readme file
* fix: only directPath determines whether hasMedia or not
fixes #2952
* fix: get rid of unnecessary 'await'
* feat: add option to send polls in channels
* refactor: get channel instances with 'getChatById'
* chore: fix eslint
* fix: fatal error
* refactor: delete local models by default when unsubscribing
* fix: prevent TypeError if no channel models are returned
* fix: update 'searchChannels' function for WWeb > 2.3000.0
* fix: fix for 'getChannelByInviteCode' function
* fix: fix for 'sendChannelAdminInvite' function
* fix: update 'fetchMessages' for channels
* refactor: update 'setReactionSetting' function
* fix: update 'sendMessage' for channels
* feat: add 'transferChannelOwnership' function
* refactor: add 'deleteChannel' function to 'Client'
* style: fix project code style
* chore: eslint fix
* feat: add 'sendSeen' function
* fix: fix the function restoration after injection
* refactor: remove duplicate module
* fix: get isNewsletter properly
* fix: fix channels media - add mediaHandle
Co-authored-by: devlikepro <155617407+devlikepro@users.noreply.github.com>
---------
Co-authored-by: tuke307 <58882912+tuke307@users.noreply.github.com>
Co-authored-by: Sven <sven2neumann@gmail.com>
Co-authored-by: Sven Neumann <s.neumann@websix.de>
Co-authored-by: devlikepro <155617407+devlikepro@users.noreply.github.com>
2025-05-31 21:36:19 +03:00
alechkos
dd257b2039
feat: @lid support ( #3571 )
...
* fix: convert lid to wid in window.WWebJS.getChatModel
* convert lid to wid in window.WWebJS.getContact
2025-05-31 21:24:44 +03:00
WWebJS Bot
f41d1e2174
chore(): generate docs
2025-05-30 17:29:26 +00:00
WWebJS Bot
5ad6a03b2c
1.28.1-alpha.0
2025-05-30 17:29:07 +00:00
alechkos
91217f87ba
fix: Chat.isMuted ( #2999 )
...
* fix: isMuted returns true or false
* docs: add missing parts
* refactor: apply simplification
* fix: update chat instance after calling mute/unmute
* stylee: clarify and fix docs
* fix: fix convertation of Date to timestamp
* refactor: small code refactor
2025-05-30 16:41:31 +03:00
alechkos
d29eaf7def
feat: save contact to addressbook ( #3533 )
...
* feat: add respectfull modules
* feat: add saveOrEditAddressbookContact function
* feat: add deleteAddressbookContact function
* refactor: import necessary type for return value
* style: fix typo
* docs: add ocs
* style: fix typo
2025-05-30 16:39:32 +03:00
Shir Serlui
494a18ddb2
Support lid me user in message id ( #3570 )
...
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-05-30 16:38:48 +03:00
WavyCat
3836309f99
Fix the Location declaration ( #3555 )
...
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-05-30 16:28:40 +03:00
Kang
e62f15edf3
Able to forward with caption ( #3463 )
...
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
2025-05-30 15:56:35 +03:00
alechkos
385e3cc59b
fix: chat instance retrieving in syncHistory ( #3342 )
2025-05-30 15:53:36 +03:00
alechkos
bad202d2bc
fix: fix 'delete' method for messages ( #3301 )
2025-05-30 15:51:41 +03:00
alechkos
0d040611e7
fix: remove serialization on already deserialized object ( #3350 )
2025-05-30 15:50:02 +03:00
Luiz Braga
c6b6fb149b
fix: puppeteer connection with browser url ( #3518 )
...
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
2025-05-30 14:39:11 +03:00