@itsliaaa/baileys 0.1.27 β 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -34,6 +34,25 @@ This fork designed for production use with a focus on clarity and safety:
|
|
|
34
34
|
- π« No obfuscation. Easy to read and audit.
|
|
35
35
|
- π« No auto-follow channel (newsletter) behavior.
|
|
36
36
|
|
|
37
|
+
> [!IMPORTANT]
|
|
38
|
+
Hi everyone,
|
|
39
|
+
>
|
|
40
|
+
> I want to share something thatβs been weighing on me a bit.
|
|
41
|
+
>
|
|
42
|
+
> Recently, I found a few packages published on npm that are essentially just **renamed** versions of a fork I personally worked on:
|
|
43
|
+
>
|
|
44
|
+
> - [@noya4u_27](https://www.npmjs.com/package/@noya4u_27/baileys) **[STEALER]**
|
|
45
|
+
> - [@phrolovaa](https://www.npmjs.com/package/@phrolovaa/baileys) **[STEALER]**
|
|
46
|
+
> - [@dnuzi](https://www.npmjs.com/package/@dnuzi/baileys) **[STEALER]**
|
|
47
|
+
>
|
|
48
|
+
> To be clear, Iβm **not** the original maintainer of Baileys all respect goes to the amazing work behind [@whiskeysockets/baileys](https://github.com/WhiskeySockets/Baileys). I only created and maintained my own fork ([@itsliaaa/baileys](https://www.npmjs.com/package/@itsliaaa/baileys)) where I spent a **lot** of time improving and adapting things on my own.
|
|
49
|
+
>
|
|
50
|
+
> **Itβs honestly a bit disheartening to see my fork being republished under different names without any acknowledgment or credit.** I put a lot of late nights and personal effort into it, so seeing it circulate like this feelsβ¦ quietly painful.
|
|
51
|
+
>
|
|
52
|
+
> If you come across these packages, Iβd really appreciate it if you could take a closer look and, if appropriate, **help report them to npm.** More than anything, I just hope for a bit of fairness and proper recognition for the work that people put in.
|
|
53
|
+
>
|
|
54
|
+
> Thank you for taking the time to read this π€
|
|
55
|
+
|
|
37
56
|
### π οΈ Internal Adjustments
|
|
38
57
|
- πΌοΈ Fixed an issue where media could not be sent to newsletters due to an upstream issue.
|
|
39
58
|
- π Reintroduced [`makeInMemoryStore`](#%EF%B8%8F-implementing-a-data-store) with a minimal ESM adaptation and small adjustments for Baileys v7.
|
|
@@ -53,7 +72,7 @@ This fork designed for production use with a focus on clarity and safety:
|
|
|
53
72
|
- π³ [Payment-related Message](#-sending-payment-messages) (payment requests, invites, orders, invoices).
|
|
54
73
|
- π° Simplified sending messages with ad thumbnail using [`externalAdReply`](#3%EF%B8%8Fβ£-external-ad-reply), without requiring manual `contextInfo`.
|
|
55
74
|
- π Added support for quoting messages inside channel (newsletter). **[NEW]**
|
|
56
|
-
- π Added support for [custom button icon](
|
|
75
|
+
- π Added support for [custom button icon](#3%EF%B8%8Fβ£-interactive). **[NEW]**
|
|
57
76
|
|
|
58
77
|
### π§© Additional Message Options
|
|
59
78
|
- ποΈ Added optional boolean flags for message handling:
|
|
@@ -807,7 +826,8 @@ sock.sendMessage(jid, {
|
|
|
807
826
|
copy: '@itsliaaa/baileys'
|
|
808
827
|
}, {
|
|
809
828
|
text: 'π Source',
|
|
810
|
-
url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
|
|
829
|
+
url: 'https://www.npmjs.com/package/@itsliaaa/baileys',
|
|
830
|
+
useWebview: true // --- Optional
|
|
811
831
|
}, {
|
|
812
832
|
text: 'π Select',
|
|
813
833
|
sections: [{
|
|
@@ -847,7 +867,8 @@ sock.sendMessage(jid, {
|
|
|
847
867
|
footer: 'π·οΈοΈ Pinterest',
|
|
848
868
|
nativeFlow: [{
|
|
849
869
|
text: 'π Source',
|
|
850
|
-
url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
|
|
870
|
+
url: 'https://www.npmjs.com/package/@itsliaaa/baileys',
|
|
871
|
+
useWebview: true
|
|
851
872
|
}]
|
|
852
873
|
}, {
|
|
853
874
|
image: {
|
|
@@ -877,7 +898,8 @@ sock.sendMessage(jid, {
|
|
|
877
898
|
offerExpiration: Date.now() + 3_600_000,
|
|
878
899
|
nativeFlow: [{
|
|
879
900
|
text: 'π Product',
|
|
880
|
-
id: '#Product'
|
|
901
|
+
id: '#Product',
|
|
902
|
+
icon: 'default'
|
|
881
903
|
}, {
|
|
882
904
|
text: 'π Source',
|
|
883
905
|
url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
|
package/lib/Defaults/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { proto } from '../../WAProto/index.js';
|
|
|
2
2
|
import { makeLibSignalRepository } from '../Signal/libsignal.js';
|
|
3
3
|
import { Browsers } from '../Utils/browser-utils.js';
|
|
4
4
|
import logger from '../Utils/logger.js';
|
|
5
|
-
const version = [2, 3000,
|
|
5
|
+
const version = [2, 3000, 1037013887];
|
|
6
6
|
export const UNAUTHORIZED_CODES = [401, 403, 419];
|
|
7
7
|
export const BIZ_BOT_SUPPORT_PAYLOAD = '{"version":1,"is_ai_message":true,"should_upload_client_logs":false,"should_show_system_message":false,"ticket_id":"7004947587700716","citation_items":[],"ticket_locale":"us"}';
|
|
8
8
|
export const DEFAULT_ORIGIN = 'https://web.whatsapp.com';
|
package/lib/Utils/generics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Boom } from '@hapi/boom';
|
|
2
2
|
import { createHash, randomBytes, randomFillSync } from 'crypto';
|
|
3
3
|
import { proto } from '../../WAProto/index.js';
|
|
4
|
-
const baileysVersion = [2, 3000,
|
|
4
|
+
const baileysVersion = [2, 3000, 1037013887];
|
|
5
5
|
import { DisconnectReason } from '../Types/index.js';
|
|
6
6
|
import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
|
|
7
7
|
import { sha256 } from './crypto.js';
|
package/lib/Utils/messages.js
CHANGED
|
@@ -5,6 +5,7 @@ import { initAuthCreds } from './auth-utils.js';
|
|
|
5
5
|
import { BufferJSON } from './generics.js';
|
|
6
6
|
// Lia@Changes 25-03-26 --- Add useSingleFileAuthState with integrated cache
|
|
7
7
|
const FLUSH_TIMEOUT_MS = 3000;
|
|
8
|
+
// Lia@Note 21-04-26 --- Unstable need enhancement soon!
|
|
8
9
|
export const useSingleFileAuthState = async (fileName) => {
|
|
9
10
|
const cache = new Map();
|
|
10
11
|
let isLoaded,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itsliaaa/baileys",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "Enhanced Baileys v7 with fixed newsletter media upload, plus support for interactive messages, albums, and more message types.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|