Commit Graph

889 Commits

Author SHA1 Message Date
vini 19124426b2 [feat]: add/edit/remove contacts (#1172)
* add/edit/remove contacts

* use proto type in contact action

---------

Co-authored-by: canove <cassio@economicros.com.br>
2025-07-09 22:01:20 +03:00
DevAstro 44c5e16c05 add owner country code attribute (#1565)
name says it all
2025-07-05 23:59:24 +03:00
Cassio Santos 4ccec1f6ce fix: do not throw error on socket closed while opening (#1576) 2025-07-04 17:31:46 -03:00
João Lucas de Oliveira Lopes 8391c02e0b [READY FOR MERGE] Implement newsletter (#1532)
* feat: implement basic newsletter functionality with socket integration and event handling

* feat: enhance media handling for newsletters with raw media upload support

* feat: working updatePicture, removePicure, adminCount, mute, Unmute

* fix: fetchMessages

* chore: cleanup

* fix: update newsletter metadata path and query ID for consistency. newsletterMetadata works now

* chore: enhance newsletter metadata parsing and error handling

* fix: correct DELETE QueryId value in Newsletter.ts

* chore: split mex stuffs to own file

* chore: remove as any
2025-06-30 23:22:09 -03:00
devlikeapro 5ffb19120d Show poll on the sender device (#1567)
fix #675
2025-06-30 16:15:11 -03:00
DevAstro a4b96ed37e [READY FOR MERGE] Add support for custom profile picture dimensions (#1563)
* Add support for custom profile picture dimensions

The updateProfilePicture and generateProfilePicture functions now accept an optional dimensions parameter, allowing custom width and height for profile pictures. This provides more flexibility for image resizing beyond the default 640x640 size.

* minor corrections

Replaces 'w' and 'h' with 'width' and 'height' in profile picture related functions for improved clarity and consistency.

* fix lint
2025-06-30 16:04:37 -03:00
DevAstro 60577cf8d3 allow custom pairing code (#1550) 2025-06-25 09:05:12 -03:00
Wender Teixeira 83a6956b44 fix disconnect error when using sendPresenceUpdate with LID (#1545)
* chore: change version web

* fix: enhance pairing response validation and adjust HMAC handling for hosted devices

* refactor: remove unused 'from' attribute in chatstate message

* feat: update chatstate message to conditionally set 'from' attribute based on server type
2025-06-24 17:51:46 -03:00
vini 8b6ea34b07 fix: Connection error when add @ at start of your name (#1536) 2025-06-21 12:37:36 -03:00
devlikeapro b8464d3665 Add lid to Contact - contact sync, history sync, group participants (#1472) 2025-06-18 08:08:09 -03:00
Nurutomo 99bbafeae5 feat: extra metadata on groupMetadata (#1374) 2025-06-10 08:25:08 -03:00
canove ae0de94307 chore: fix format 2025-05-28 22:44:21 -03:00
canove eb6c6c8ba9 Merge branch 'master' of https://github.com/WhiskeySockets/Baileys into fix-eslint-prettier-editorconfig-rules 2025-05-28 22:42:28 -03:00
Nandhika Prayoga fc7b23ec0f Look up isNodeFromMe for fromMe when attribute type is sender 2025-05-16 12:16:11 +00:00
canove feecb6d8ee Merge branch 'master' of https://github.com/WhiskeySockets/Baileys into fix-eslint-prettier-editorconfig-rules 2025-05-14 07:40:05 -03:00
Skid d5f34f46c3 more consistent addressingMode 2025-05-11 13:27:49 -06:00
canove fa706d0b50 chore: format everything 2025-05-06 12:10:19 -03:00
Cassio Santos a85251250d Merge pull request #1381 from vai-projetos/consistently-messageId
refactor(messageId): update all remaining usages to v2 format consist…
2025-05-05 19:42:32 -03:00
Cassio Santos 5ee939418c Merge pull request #1368 from WhiskeySockets/fix-catch-unhandled-timeout-error 2025-05-01 11:55:56 -03:00
w3nder dfe8bb3283 refactor(messageId): update all remaining usages to v2 format consistently 2025-04-30 00:59:19 -03:00
canove a4338fac12 fix: send message to lid groups 2025-04-25 07:39:29 -03:00
canove 6d4ce2cb18 chore: avoid unhandled promise timeout errors 2025-04-24 13:38:43 -03:00
canove 2dbfb085d5 chore: avoid unhandled promise timeout errors 2025-04-24 13:38:00 -03:00
canove 2382fb8723 chore: avoid unhandled promise timeout errors 2025-04-24 13:37:03 -03:00
canove 53d6e3a8d5 fix: send message to LID addressing_mode groups 2025-04-23 10:17:30 -03:00
Rajeh Taher c037f68c2d socket: include lid in onWhatsApp response 2025-04-09 20:17:53 +03:00
João Lucas de Oliveira Lopes c2cf49cd68 refactor: remove unused dependencies and clean up type exports (#1319) 2025-04-09 02:51:33 +03:00
Nurutomo d5dc758874 fix #1331 (#1334)
* fix for groups

* lint: fix linting

* messages-send: jids checking
2025-04-02 13:26:04 +03:00
Rajeh Taher f19ffa7cca messages-send: rigid checks on per-jid patch (fixes peer messages)
Peer messages were causing an error here since they are only sent to the device (no otherJids)
2025-03-20 01:22:50 +02:00
Rajeh Taher c96be39829 messages-recv: stopgap to prevent errors from msmsg (Meta AI) 2025-03-19 00:45:43 +02:00
Rajeh Taher 98ecd2a653 usync, chat: get bot profile info and get bot list 2025-03-19 00:44:53 +02:00
Rajeh Taher b7a9f7bd67 chats: stop using getMessage to decrypt poll votes
The new expected behavior is to decrypt the new votes yourself like in the Example.ts file
2025-03-14 23:40:33 +02:00
Rajeh Taher a29138758c socket, binary, usync: fix linting 2025-03-14 23:38:53 +02:00
Rajeh Taher 1c2af09b03 socket,config: deprecate printQRInTerminal option
This was done to reduce dependencies
2025-03-10 15:08:50 +02:00
Rajeh Taher e1aadc5546 feat: add per-jid patching
This does not work in groups
2025-03-10 14:51:13 +02:00
Rajeh Taher 99142aac96 proto: update manually to 2.3000.1020608496 2025-03-06 04:22:17 +02:00
João Lucas de Oliveira Lopes 8083754621 refactor: turn hkdf functions to async and remove extra deps (#1272)
* refactor: remove futoin-hkdf dependency and update hkdf implementation

* refactor: use crypto subtle and update functions to async

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:31:48 +02:00
contato.mateusfr@gmail.com 21f8431e61 Dependency Inversion for Logger (#1153)
* feat: interface "ILogger" created
feat: interface "ILogger" used instead of pino logger
feat: "PinoLoggerAdapter" created to implement "ILogger" interface

* feat: PinoLoggerAdapter removed
feat: ILogger mapping the features we're using from pino

* fix: sort imports

---------

Co-authored-by: Mateus Franchini de Freitas <contato.mateusfr@outlook.com>
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:30:51 +02:00
Rajeh Taher 447e648958 --no-edit 2025-03-01 18:30:09 +02:00
Rajeh Taher 49eeb7556d socket,utils: fix imports 2025-03-01 18:26:20 +02:00
Bob 1d88166613 Feat: Block messages from unknown numbers (#1071)
* Update Chat.ts

* Update chats.ts

* lint

* lint

* lint
2025-03-01 18:20:22 +02:00
contato.mateusfr@gmail.com cfbfcd8e14 fix: sending SERVER_ACK to messages.update (#1101)
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
2025-03-01 18:17:29 +02:00
Jared Wray 588de6ce10 fix: migrating to @cacheable/node-cache as it is maintained (#1074) 2025-03-01 18:15:49 +02:00
Rajeh Taher b1fcab0216 messages-recv,encode: Implement proper fixes 2025-01-31 23:59:04 +02:00
Rajeh Taher 9f61f3acf0 messages-recv: DISABLE MESSAGE RESEND 2025-01-31 20:46:13 +02:00
Rajeh Taher 3fca643d92 messaging: fix the hangs caused by the 66e error 2025-01-30 23:31:25 +02:00
Rajeh Taher f1f49ad2c8 Usync: Barebones Usync Protocol support (#960)
* feature(feature/usync-mex): initial commit

* chore: fix merge commit

* chore:lint
2024-12-22 23:38:41 +02:00
Rajeh Taher 34cfa92076 messages-send,tsconfig: add poll message attributes + fix tsconfig 2024-10-18 06:08:40 +00:00
Rajeh Taher 18ac07df8e lint: 0 warnings left 2024-10-14 05:15:10 +03:00
Rajeh Taher 61a0ff3178 mobile: deprecation. 2024-10-14 03:56:32 +03:00