Commit Graph

138 Commits

Author SHA1 Message Date
Rajeh Taher 8dc852ee89 proto: fix proto generation, tsc: fix node imports of compiled code 2025-07-19 23:16:35 +03:00
Rajeh Taher 90781ce0f2 eslint: upgrade to version 9 + tests: remove tests 2025-07-18 22:30:50 +03:00
Rajeh Taher 787aed88b8 project: Move to ESM Modules 2025-07-17 13:54:17 +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
Gustavo Quadri cf514fa8d7 Fix Removed Reactions Events: Emit a Socket Event in "messages.reaction" (#1371)
* fix: emit event with empty reactions

* chore: fix lint

---------

Co-authored-by: Cassio Santos <cassio@economicros.com.br>
2025-06-18 08:30:19 -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
canove fb83e4799d chore: remove unused variables 2025-05-13 18:35:29 -03:00
canove fa706d0b50 chore: format everything 2025-05-06 12:10:19 -03:00
canove f58a38fde9 fix: allow media upload retries 2025-05-06 08:06:05 -03:00
canove 8cc8b44724 chore: lint 2025-05-05 21:33:35 -03:00
canove bff86ed4c1 fix: memory blow on large files sending through URL 2025-05-05 21:11:40 -03:00
w3nder dfe8bb3283 refactor(messageId): update all remaining usages to v2 format consistently 2025-04-30 00:59:19 -03:00
Rajeh Taher 99142aac96 proto: update manually to 2.3000.1020608496 2025-03-06 04:22:17 +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
AstroX11 89b28a438b feat: add Id support for desktop (#1240)
* feat: add Id support for desktop

This commit adjusts the ID length check for desktop, fixing the issue where some desktop IDs were incorrectly classified as "unknown."

Baileys stopped identifying if a message was from WA Desktop (Based on my observations last Year).

This adjustment addresses this issue.

* redundancy removed

* fix: linting
2025-02-24 03:24:44 +02:00
Lucas Maia b78902fc8d messages: fix EPERM error by verifying temp file removal when sending images (#1227)
* messages: add verification to remove temp file, solve EPERM operation not permitted

* fix lint on messages

* another try to fix lint for pr health

* Fixed, too many changes were breaking the code; this should be enough

* another try to fix this
2025-02-02 11:52:55 +02:00
vini 31bc8ab4e2 [chore]: remove duplicated waveform generation (#1169) 2024-12-23 21:26:10 +02:00
Rajeh Taher 18ac07df8e lint: 0 warnings left 2024-10-14 05:15:10 +03:00
Rajeh Taher 7c9f2ebd46 feat(feature/group-invite-v4): initial/final commit (#958) 2024-08-14 12:10:37 +03:00
Rajeh Taher 020add8b9b feature(feature/pin-message): initial/final commit (#959) 2024-08-14 12:09:29 +03:00
Rajeh Taher 35f6d75cf8 fix(fix/buttons-deprecation): initial/final commit (#956) 2024-08-14 12:07:12 +03:00
Rajeh Taher e91501026c feat(feature/poll-v3): initial/final commit (#957) 2024-08-14 12:06:32 +03:00
azudin 6af6bffe31 Fix: sending ptv if true (#856) 2024-06-10 20:00:23 +03:00
azudin 8076745abf Video Note (ptvMessage) support (#840)
* Update messages-recv.ts

revert back jid to from

* fix productMessage

fixed sending catalog

* Update messages-recv.ts

* Update messages-recv.ts

* Update messages.ts

* Update ptvMessage

* Update messages.ts

* Update README.md

* Update src/Socket/messages-recv.ts

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-06-10 14:01:13 +03:00
arthur simas 2ae664c655 fix: downloadMediaMessage return type matched parameter (#757)
* fix: downloadMediaMessage return type matched parameter

* chore: keyword-spacing eslint rule warn instead of error

* chore: linting

aaaaaaaaaaaaaaaaaaaa
2024-05-15 18:34:06 +03:00
arthur simas d91967aa1c Revert "fix: inefficient method of extracting url from text (#741)" (#748)
* Revert "fix: inefficient method of extracting url from text (#741)"

This reverts commit f5c1affc4d.

* fix: link preview should follow redirects

* fix: allow link preview of URLs with @ sign

---------

Co-authored-by: Ezequiel Moraes <ezequielmoraesdev@gmail.com>
2024-04-29 10:44:42 +03:00
arthur simas 03f82f599e fix: enable viewOnce messages to quote (#736) 2024-04-28 14:18:29 +03:00
arthur simas 111601bc73 feat: add support to ptvMessage in sendMessage method (#738)
* add support to ptvMessage in sendMessage method

* fix(ptv-sendmessage): Eslint

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-04-28 14:00:49 +03:00
Ezequiel Moraes f5c1affc4d fix: inefficient method of extracting url from text (#741)
* fix: inefficient method of extracting url from text
This fixes the thumbnail error when submitting a
Google Maps link.

* fix: link preview with redirects
2024-04-28 13:48:25 +03:00
Javier Cuevas af4251953b Support for receiving "view once" audio messages (#595) 2024-01-19 18:30:20 +02:00
Bob 985fd3b94d Update getDevice (#569)
Co-authored-by: Bob <115008575+bobpetrov@users.noreply.github.com>
2024-01-19 18:01:32 +02:00
ShellTear 9e52fc63f0 Merge pull request #504 from cristiano-linvix/master
fix: fix message content type detection
2024-01-03 00:10:10 +02:00
Rajeh Taher 1af26c7c16 Merge pull request #451 from andresayac/master
proposal: detect desktop and fix device identification using message
2024-01-01 01:27:34 +02:00
Cristiano Cruz a07922b136 fix: fix message content type detection 2023-11-16 16:18:13 -03:00
Andres Aya 18681c995b proposal: detect desktop and fix device identification using message 2023-10-19 15:21:38 -05:00
Rajeh Taher 7cc604a9b5 share, receive, request, all you want 2023-10-01 21:43:00 +00:00
ShellTear f18c9483cc Update messages.ts
Remove string type and revert back to boolean.
2023-07-19 22:18:20 +03:00
Davidson Gomes cba9827851 feat: Send Status (status@broadcast) {text, media, audio(with waveform)} (#249)
Co-authored-by: Davidson Gomes <contato@agenciadgcode.com>
2023-07-18 10:25:16 -03:00
Codeboss 2c76713565 feat: Add waveforms to voice messages (#180)
Co-authored-by: Edgard <edgardmessias@gmail.com>
2023-07-13 21:08:11 -03:00
ファイズ a683cbe633 fix: Fixed ephemeral message visual bug (#185)
Co-authored-by: aqulzz <75623219+zennn08@users.noreply.github.com>
2023-07-08 18:06:13 -03:00
BochilGaming 8e1e9b9386 fix: fix edit message (#192) 2023-06-30 18:19:34 -03:00
Hisoka775 13c3b91852 feat: add contextInfo support 2023-06-15 20:02:39 -03:00
Andres Aya 7f60f163e6 fix: get poll request from getAggregateVotesInPollMessage in v1 v2 v3 (#74) 2023-05-16 19:35:01 +02:00
Rajeh Taher 9cce97e555 ESLint fix 2023-05-10 23:49:39 +03:00
Rajeh Taher 49c2195f82 ESLINT 2023-05-10 23:48:09 +03:00
Rajeh Taher 3478f2b679 Update messages.ts 2023-05-06 01:27:50 +03:00
Adhiraj Singh d98d4156fe feat: utility functions for poll updates 2023-03-02 18:45:56 +05:30
Adhiraj Singh cd42881201 feat: allow messageSecret as param to poll create 2023-03-02 17:42:34 +05:30