@builderbot/provider-baileys 1.3.5-alpha.7 → 1.3.5-alpha.8
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/dist/bailey.d.ts +4 -3
- package/dist/bailey.d.ts.map +1 -1
- package/dist/index.cjs +121 -58
- package/dist/index.mjs +121 -58
- package/dist/utils.d.ts +4 -2
- package/dist/utils.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/bailey.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare class BaileysProvider extends ProviderClass<WASocket> {
|
|
|
48
48
|
protected getMessage: (key: {
|
|
49
49
|
remoteJid: string;
|
|
50
50
|
id: string;
|
|
51
|
-
}) => Promise<
|
|
51
|
+
}) => Promise<{}>;
|
|
52
52
|
protected saveCredsGlobal: (() => Promise<void>) | null;
|
|
53
53
|
/**
|
|
54
54
|
* Iniciar todo Bailey
|
|
@@ -200,9 +200,10 @@ declare class BaileysProvider extends ProviderClass<WASocket> {
|
|
|
200
200
|
}) => Promise<string>;
|
|
201
201
|
/**
|
|
202
202
|
* Extracts sender information from MessageKey using Baileys v7.0.0+ Alt fields
|
|
203
|
-
*
|
|
203
|
+
* FOLLOWS OFFICIAL GUIDANCE: Prefers LIDs over PNs as per Baileys documentation
|
|
204
|
+
* Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
204
205
|
* @param key MessageKey with potential remoteJidAlt/participantAlt fields
|
|
205
|
-
* @returns Object with identifier, type, and isLID flag
|
|
206
|
+
* @returns Object with identifier (preferring LID per official guidance), type, and isLID flag
|
|
206
207
|
*/
|
|
207
208
|
private extractSenderWithAltFields;
|
|
208
209
|
private shouldReconnect;
|
package/dist/bailey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bailey.d.ts","sourceRoot":"","sources":["../src/bailey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAS,MAAM,iBAAiB,CAAA;AACtD,OAAO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OAIG;IACU,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBtE;;;;OAIG;IACU,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgB9D;;;;;OAKG;IACU,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAgBrF;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -3826,25 +3826,38 @@ const emptyDirSessions = async (pathBase) => new Promise((resolve, reject) => {
|
|
|
3826
3826
|
/**
|
|
3827
3827
|
* Cleans and extracts the appropriate identifier from MessageKey, supporting LID system.
|
|
3828
3828
|
* Uses remoteJidAlt/participantAlt when available according to Baileys v7.0.0+ specs.
|
|
3829
|
+
* FOLLOWS OFFICIAL GUIDANCE: Prefers LIDs over PNs as per Baileys documentation.
|
|
3830
|
+
* Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
3829
3831
|
* @param key The MessageKey object from Baileys with LID support
|
|
3830
|
-
* @returns The
|
|
3832
|
+
* @returns The identifier (preferring LID over PN per official guidance)
|
|
3831
3833
|
*/
|
|
3832
3834
|
function baileyCleanNumberWithLid(key) {
|
|
3835
|
+
let rawIdentifier = '';
|
|
3836
|
+
let isLID = false;
|
|
3833
3837
|
// For groups: use participantAlt if available, fallback to participant
|
|
3834
3838
|
if (key.participant || key.participantAlt) {
|
|
3835
|
-
|
|
3836
|
-
|
|
3839
|
+
rawIdentifier = key.participantAlt || key.participant || '';
|
|
3840
|
+
isLID = rawIdentifier.includes('@lid');
|
|
3837
3841
|
}
|
|
3838
3842
|
// For DMs: use remoteJidAlt if available, fallback to remoteJid
|
|
3839
|
-
if (key.remoteJid || key.remoteJidAlt) {
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3843
|
+
else if (key.remoteJid || key.remoteJidAlt) {
|
|
3844
|
+
rawIdentifier = key.remoteJidAlt || key.remoteJid || '';
|
|
3845
|
+
isLID = rawIdentifier.includes('@lid');
|
|
3846
|
+
}
|
|
3847
|
+
if (!rawIdentifier) {
|
|
3848
|
+
return '';
|
|
3849
|
+
}
|
|
3850
|
+
// OFFICIAL BAILEYS STRATEGY: Prefer LIDs over PNs
|
|
3851
|
+
// "THE GOAL SHOULDN'T BE TO RESTORE THE PN JID ANYMORE, MIGRATE TO LIDs. PNs are WAY LESS RELIABLE."
|
|
3852
|
+
if (isLID) {
|
|
3853
|
+
console.log(`[${new Date().toISOString()}] baileyCleanNumberWithLid: Using LID ${rawIdentifier} (Baileys v7.0.0+ best practice)`);
|
|
3854
|
+
return rawIdentifier;
|
|
3846
3855
|
}
|
|
3847
|
-
|
|
3856
|
+
// If we only have PN, use it but log that we should migrate to LID
|
|
3857
|
+
if (rawIdentifier.includes('@s.whatsapp.net')) {
|
|
3858
|
+
console.log(`[${new Date().toISOString()}] baileyCleanNumberWithLid: Using PN ${rawIdentifier} - should migrate to LID when available`);
|
|
3859
|
+
}
|
|
3860
|
+
return rawIdentifier;
|
|
3848
3861
|
}
|
|
3849
3862
|
/**
|
|
3850
3863
|
* Cleans the WhatsApp number format, supporting both LIDs and PNs.
|
|
@@ -3904,7 +3917,7 @@ const baileyIsValidNumber = (rawIdentifier) => {
|
|
|
3904
3917
|
const isGroup = rawIdentifier.match(regexGroup);
|
|
3905
3918
|
if (isGroup)
|
|
3906
3919
|
return false;
|
|
3907
|
-
// Exclude broadcast lists
|
|
3920
|
+
// Exclude broadcast lists
|
|
3908
3921
|
if (rawIdentifier.includes('@broadcast'))
|
|
3909
3922
|
return false;
|
|
3910
3923
|
// Accept LIDs (Local Identifiers) - preferred format
|
|
@@ -31076,8 +31089,21 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
31076
31089
|
};
|
|
31077
31090
|
this.getMessage = async (key) => {
|
|
31078
31091
|
// only if store is present
|
|
31079
|
-
// In Baileys v7.0.0+
|
|
31080
|
-
|
|
31092
|
+
// In Baileys v7.0.0+ use create(), fallback to empty object for tests
|
|
31093
|
+
try {
|
|
31094
|
+
if (baileys.proto.Message.create) {
|
|
31095
|
+
return baileys.proto.Message.create({});
|
|
31096
|
+
}
|
|
31097
|
+
else {
|
|
31098
|
+
// Fallback for tests and older versions
|
|
31099
|
+
return {};
|
|
31100
|
+
}
|
|
31101
|
+
}
|
|
31102
|
+
catch (error) {
|
|
31103
|
+
// Fallback in case of any error
|
|
31104
|
+
this.logger.log(`[${new Date().toISOString()}] Error in getMessage, using fallback:`, error);
|
|
31105
|
+
return {};
|
|
31106
|
+
}
|
|
31081
31107
|
};
|
|
31082
31108
|
this.saveCredsGlobal = null;
|
|
31083
31109
|
/**
|
|
@@ -31485,7 +31511,7 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
31485
31511
|
this.emit('lid_mapping_updated', {
|
|
31486
31512
|
mappings: lidMappingUpdate,
|
|
31487
31513
|
timestamp: new Date().toISOString(),
|
|
31488
|
-
count: Object.keys(lidMappingUpdate).length
|
|
31514
|
+
count: Object.keys(lidMappingUpdate).length,
|
|
31489
31515
|
});
|
|
31490
31516
|
}
|
|
31491
31517
|
}
|
|
@@ -31940,47 +31966,66 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
31940
31966
|
afterHttpServerInit() { }
|
|
31941
31967
|
/**
|
|
31942
31968
|
* Extracts sender information from MessageKey using Baileys v7.0.0+ Alt fields
|
|
31943
|
-
*
|
|
31969
|
+
* FOLLOWS OFFICIAL GUIDANCE: Prefers LIDs over PNs as per Baileys documentation
|
|
31970
|
+
* Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
31944
31971
|
* @param key MessageKey with potential remoteJidAlt/participantAlt fields
|
|
31945
|
-
* @returns Object with identifier, type, and isLID flag
|
|
31972
|
+
* @returns Object with identifier (preferring LID per official guidance), type, and isLID flag
|
|
31946
31973
|
*/
|
|
31947
31974
|
extractSenderWithAltFields(key) {
|
|
31948
31975
|
try {
|
|
31976
|
+
let rawIdentifier = '';
|
|
31977
|
+
let isOriginallyLID = false;
|
|
31949
31978
|
// For groups: prioritize participantAlt over participant
|
|
31950
31979
|
if (key?.participant || key?.participantAlt) {
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
return {
|
|
31954
|
-
identifier: baileyCleanNumber(groupSender),
|
|
31955
|
-
type: groupSender.includes('@lid') ? 'lid' : groupSender.includes('@s.whatsapp.net') ? 'pn' : 'unknown',
|
|
31956
|
-
isLID: groupSender.includes('@lid')
|
|
31957
|
-
};
|
|
31958
|
-
}
|
|
31980
|
+
rawIdentifier = key.participantAlt || key.participant || '';
|
|
31981
|
+
isOriginallyLID = rawIdentifier.includes('@lid');
|
|
31959
31982
|
}
|
|
31960
31983
|
// For DMs: prioritize remoteJidAlt over remoteJid
|
|
31961
|
-
if (key?.remoteJid || key?.remoteJidAlt) {
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31970
|
-
}
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31984
|
+
else if (key?.remoteJid || key?.remoteJidAlt) {
|
|
31985
|
+
rawIdentifier = key.remoteJidAlt || key.remoteJid || '';
|
|
31986
|
+
isOriginallyLID = rawIdentifier.includes('@lid');
|
|
31987
|
+
}
|
|
31988
|
+
if (!rawIdentifier) {
|
|
31989
|
+
return {
|
|
31990
|
+
identifier: '',
|
|
31991
|
+
type: 'unknown',
|
|
31992
|
+
isLID: false,
|
|
31993
|
+
};
|
|
31994
|
+
}
|
|
31995
|
+
// NORMALIZATION STRATEGY: Follow Baileys v7.0.0+ official guidance - MIGRATE TO LIDs
|
|
31996
|
+
// Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
31997
|
+
// "THE GOAL SHOULDN'T BE TO RESTORE THE PN JID ANYMORE, MIGRATE TO LIDs. PNs are WAY LESS RELIABLE."
|
|
31998
|
+
let normalizedIdentifier = rawIdentifier;
|
|
31999
|
+
let shouldPreferLID = false;
|
|
32000
|
+
// Strategy 1: If we have both LID and PN, prefer LID (official recommendation)
|
|
32001
|
+
if (isOriginallyLID) {
|
|
32002
|
+
// Keep the LID - this is the preferred approach per Baileys docs
|
|
32003
|
+
normalizedIdentifier = rawIdentifier;
|
|
32004
|
+
shouldPreferLID = true;
|
|
32005
|
+
this.logger.log(`[${new Date().toISOString()}] Using LID ${rawIdentifier} as primary identifier (Baileys v7.0.0+ best practice)`);
|
|
32006
|
+
}
|
|
32007
|
+
// Strategy 2: If we only have PN but can get LID from store, try to upgrade to LID
|
|
32008
|
+
else if (!isOriginallyLID && rawIdentifier.includes('@s.whatsapp.net')) {
|
|
32009
|
+
// We have a PN, but should try to find corresponding LID if available
|
|
32010
|
+
const lidStore = this.getLIDMappingStore();
|
|
32011
|
+
if (lidStore) {
|
|
32012
|
+
// Note: We would need to implement async LID lookup here in the future
|
|
32013
|
+
// For now, keep the PN but log the situation
|
|
32014
|
+
this.logger.log(`[${new Date().toISOString()}] PN ${rawIdentifier} detected - should lookup corresponding LID for migration`);
|
|
31977
32015
|
}
|
|
31978
32016
|
}
|
|
31979
|
-
//
|
|
32017
|
+
// Clean the normalized identifier
|
|
32018
|
+
const cleanIdentifier = baileyCleanNumber(normalizedIdentifier);
|
|
32019
|
+
// Determine final type based on normalized identifier
|
|
32020
|
+
const finalType = normalizedIdentifier.includes('@lid')
|
|
32021
|
+
? 'lid'
|
|
32022
|
+
: normalizedIdentifier.includes('@s.whatsapp.net')
|
|
32023
|
+
? 'pn'
|
|
32024
|
+
: 'unknown';
|
|
31980
32025
|
return {
|
|
31981
|
-
identifier:
|
|
31982
|
-
type:
|
|
31983
|
-
isLID:
|
|
32026
|
+
identifier: cleanIdentifier,
|
|
32027
|
+
type: finalType,
|
|
32028
|
+
isLID: isOriginallyLID, // Flag indicates if original was LID, even if we normalized to PN
|
|
31984
32029
|
};
|
|
31985
32030
|
}
|
|
31986
32031
|
catch (error) {
|
|
@@ -31989,7 +32034,7 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
31989
32034
|
return {
|
|
31990
32035
|
identifier: baileyCleanNumberWithLid(key),
|
|
31991
32036
|
type: 'unknown',
|
|
31992
|
-
isLID: false
|
|
32037
|
+
isLID: false,
|
|
31993
32038
|
};
|
|
31994
32039
|
}
|
|
31995
32040
|
}
|
|
@@ -32040,21 +32085,39 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
32040
32085
|
*/
|
|
32041
32086
|
validateLIDSupport(state) {
|
|
32042
32087
|
try {
|
|
32043
|
-
|
|
32044
|
-
|
|
32045
|
-
|
|
32046
|
-
|
|
32088
|
+
// OFFICIAL REQUIREMENT per https://baileys.wiki/docs/migration/to-v7.0.0
|
|
32089
|
+
// "This system requires the auth state to support the lid-mapping and device-index keys"
|
|
32090
|
+
let hasLidMappingKey = false;
|
|
32091
|
+
let hasDeviceIndexKey = false;
|
|
32092
|
+
if (state.keys && typeof state.keys === 'object') {
|
|
32093
|
+
const keyNames = Object.keys(state.keys);
|
|
32094
|
+
hasLidMappingKey = keyNames.some(key => key === 'lid-mapping' ||
|
|
32095
|
+
key === 'lidMapping' ||
|
|
32096
|
+
key.includes('lid-map'));
|
|
32097
|
+
hasDeviceIndexKey = keyNames.some(key => key === 'device-index' ||
|
|
32098
|
+
key === 'deviceIndex' ||
|
|
32099
|
+
key.includes('device-index'));
|
|
32047
32100
|
}
|
|
32048
|
-
|
|
32049
|
-
|
|
32101
|
+
// Critical validation as per official docs
|
|
32102
|
+
if (!hasLidMappingKey) {
|
|
32103
|
+
this.logger.log(`[${new Date().toISOString()}] ⚠️ CRITICAL: Auth state missing 'lid-mapping' key support`);
|
|
32104
|
+
this.logger.log(`[${new Date().toISOString()}] This is REQUIRED for Baileys v7.0.0+ LID system`);
|
|
32050
32105
|
}
|
|
32051
|
-
|
|
32052
|
-
|
|
32053
|
-
|
|
32054
|
-
|
|
32106
|
+
if (!hasDeviceIndexKey) {
|
|
32107
|
+
this.logger.log(`[${new Date().toISOString()}] ⚠️ CRITICAL: Auth state missing 'device-index' key support`);
|
|
32108
|
+
this.logger.log(`[${new Date().toISOString()}] This is REQUIRED for Baileys v7.0.0+ LID system`);
|
|
32109
|
+
}
|
|
32110
|
+
if (hasLidMappingKey && hasDeviceIndexKey) {
|
|
32111
|
+
this.logger.log(`[${new Date().toISOString()}] ✅ Auth state supports LID system requirements (lid-mapping ✓, device-index ✓)`);
|
|
32055
32112
|
}
|
|
32056
|
-
|
|
32057
|
-
this.logger.log(`[${new Date().toISOString()}]
|
|
32113
|
+
else {
|
|
32114
|
+
this.logger.log(`[${new Date().toISOString()}] ❌ Auth state does NOT meet Baileys v7.0.0+ LID requirements`);
|
|
32115
|
+
this.logger.log(`[${new Date().toISOString()}] Please update your authentication state provider`);
|
|
32116
|
+
}
|
|
32117
|
+
// Debug logging
|
|
32118
|
+
if (state.keys) {
|
|
32119
|
+
const availableKeys = Object.keys(state.keys).slice(0, 5); // Show first 5 keys only
|
|
32120
|
+
this.logger.log(`[${new Date().toISOString()}] Available auth keys (sample):`, availableKeys);
|
|
32058
32121
|
}
|
|
32059
32122
|
}
|
|
32060
32123
|
catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -3824,25 +3824,38 @@ const emptyDirSessions = async (pathBase) => new Promise((resolve, reject) => {
|
|
|
3824
3824
|
/**
|
|
3825
3825
|
* Cleans and extracts the appropriate identifier from MessageKey, supporting LID system.
|
|
3826
3826
|
* Uses remoteJidAlt/participantAlt when available according to Baileys v7.0.0+ specs.
|
|
3827
|
+
* FOLLOWS OFFICIAL GUIDANCE: Prefers LIDs over PNs as per Baileys documentation.
|
|
3828
|
+
* Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
3827
3829
|
* @param key The MessageKey object from Baileys with LID support
|
|
3828
|
-
* @returns The
|
|
3830
|
+
* @returns The identifier (preferring LID over PN per official guidance)
|
|
3829
3831
|
*/
|
|
3830
3832
|
function baileyCleanNumberWithLid(key) {
|
|
3833
|
+
let rawIdentifier = '';
|
|
3834
|
+
let isLID = false;
|
|
3831
3835
|
// For groups: use participantAlt if available, fallback to participant
|
|
3832
3836
|
if (key.participant || key.participantAlt) {
|
|
3833
|
-
|
|
3834
|
-
|
|
3837
|
+
rawIdentifier = key.participantAlt || key.participant || '';
|
|
3838
|
+
isLID = rawIdentifier.includes('@lid');
|
|
3835
3839
|
}
|
|
3836
3840
|
// For DMs: use remoteJidAlt if available, fallback to remoteJid
|
|
3837
|
-
if (key.remoteJid || key.remoteJidAlt) {
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3841
|
+
else if (key.remoteJid || key.remoteJidAlt) {
|
|
3842
|
+
rawIdentifier = key.remoteJidAlt || key.remoteJid || '';
|
|
3843
|
+
isLID = rawIdentifier.includes('@lid');
|
|
3844
|
+
}
|
|
3845
|
+
if (!rawIdentifier) {
|
|
3846
|
+
return '';
|
|
3847
|
+
}
|
|
3848
|
+
// OFFICIAL BAILEYS STRATEGY: Prefer LIDs over PNs
|
|
3849
|
+
// "THE GOAL SHOULDN'T BE TO RESTORE THE PN JID ANYMORE, MIGRATE TO LIDs. PNs are WAY LESS RELIABLE."
|
|
3850
|
+
if (isLID) {
|
|
3851
|
+
console.log(`[${new Date().toISOString()}] baileyCleanNumberWithLid: Using LID ${rawIdentifier} (Baileys v7.0.0+ best practice)`);
|
|
3852
|
+
return rawIdentifier;
|
|
3844
3853
|
}
|
|
3845
|
-
|
|
3854
|
+
// If we only have PN, use it but log that we should migrate to LID
|
|
3855
|
+
if (rawIdentifier.includes('@s.whatsapp.net')) {
|
|
3856
|
+
console.log(`[${new Date().toISOString()}] baileyCleanNumberWithLid: Using PN ${rawIdentifier} - should migrate to LID when available`);
|
|
3857
|
+
}
|
|
3858
|
+
return rawIdentifier;
|
|
3846
3859
|
}
|
|
3847
3860
|
/**
|
|
3848
3861
|
* Cleans the WhatsApp number format, supporting both LIDs and PNs.
|
|
@@ -3902,7 +3915,7 @@ const baileyIsValidNumber = (rawIdentifier) => {
|
|
|
3902
3915
|
const isGroup = rawIdentifier.match(regexGroup);
|
|
3903
3916
|
if (isGroup)
|
|
3904
3917
|
return false;
|
|
3905
|
-
// Exclude broadcast lists
|
|
3918
|
+
// Exclude broadcast lists
|
|
3906
3919
|
if (rawIdentifier.includes('@broadcast'))
|
|
3907
3920
|
return false;
|
|
3908
3921
|
// Accept LIDs (Local Identifiers) - preferred format
|
|
@@ -31074,8 +31087,21 @@ class BaileysProvider extends ProviderClass {
|
|
|
31074
31087
|
};
|
|
31075
31088
|
this.getMessage = async (key) => {
|
|
31076
31089
|
// only if store is present
|
|
31077
|
-
// In Baileys v7.0.0+
|
|
31078
|
-
|
|
31090
|
+
// In Baileys v7.0.0+ use create(), fallback to empty object for tests
|
|
31091
|
+
try {
|
|
31092
|
+
if (proto$2.Message.create) {
|
|
31093
|
+
return proto$2.Message.create({});
|
|
31094
|
+
}
|
|
31095
|
+
else {
|
|
31096
|
+
// Fallback for tests and older versions
|
|
31097
|
+
return {};
|
|
31098
|
+
}
|
|
31099
|
+
}
|
|
31100
|
+
catch (error) {
|
|
31101
|
+
// Fallback in case of any error
|
|
31102
|
+
this.logger.log(`[${new Date().toISOString()}] Error in getMessage, using fallback:`, error);
|
|
31103
|
+
return {};
|
|
31104
|
+
}
|
|
31079
31105
|
};
|
|
31080
31106
|
this.saveCredsGlobal = null;
|
|
31081
31107
|
/**
|
|
@@ -31483,7 +31509,7 @@ class BaileysProvider extends ProviderClass {
|
|
|
31483
31509
|
this.emit('lid_mapping_updated', {
|
|
31484
31510
|
mappings: lidMappingUpdate,
|
|
31485
31511
|
timestamp: new Date().toISOString(),
|
|
31486
|
-
count: Object.keys(lidMappingUpdate).length
|
|
31512
|
+
count: Object.keys(lidMappingUpdate).length,
|
|
31487
31513
|
});
|
|
31488
31514
|
}
|
|
31489
31515
|
}
|
|
@@ -31938,47 +31964,66 @@ class BaileysProvider extends ProviderClass {
|
|
|
31938
31964
|
afterHttpServerInit() { }
|
|
31939
31965
|
/**
|
|
31940
31966
|
* Extracts sender information from MessageKey using Baileys v7.0.0+ Alt fields
|
|
31941
|
-
*
|
|
31967
|
+
* FOLLOWS OFFICIAL GUIDANCE: Prefers LIDs over PNs as per Baileys documentation
|
|
31968
|
+
* Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
31942
31969
|
* @param key MessageKey with potential remoteJidAlt/participantAlt fields
|
|
31943
|
-
* @returns Object with identifier, type, and isLID flag
|
|
31970
|
+
* @returns Object with identifier (preferring LID per official guidance), type, and isLID flag
|
|
31944
31971
|
*/
|
|
31945
31972
|
extractSenderWithAltFields(key) {
|
|
31946
31973
|
try {
|
|
31974
|
+
let rawIdentifier = '';
|
|
31975
|
+
let isOriginallyLID = false;
|
|
31947
31976
|
// For groups: prioritize participantAlt over participant
|
|
31948
31977
|
if (key?.participant || key?.participantAlt) {
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
return {
|
|
31952
|
-
identifier: baileyCleanNumber(groupSender),
|
|
31953
|
-
type: groupSender.includes('@lid') ? 'lid' : groupSender.includes('@s.whatsapp.net') ? 'pn' : 'unknown',
|
|
31954
|
-
isLID: groupSender.includes('@lid')
|
|
31955
|
-
};
|
|
31956
|
-
}
|
|
31978
|
+
rawIdentifier = key.participantAlt || key.participant || '';
|
|
31979
|
+
isOriginallyLID = rawIdentifier.includes('@lid');
|
|
31957
31980
|
}
|
|
31958
31981
|
// For DMs: prioritize remoteJidAlt over remoteJid
|
|
31959
|
-
if (key?.remoteJid || key?.remoteJidAlt) {
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
}
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31982
|
+
else if (key?.remoteJid || key?.remoteJidAlt) {
|
|
31983
|
+
rawIdentifier = key.remoteJidAlt || key.remoteJid || '';
|
|
31984
|
+
isOriginallyLID = rawIdentifier.includes('@lid');
|
|
31985
|
+
}
|
|
31986
|
+
if (!rawIdentifier) {
|
|
31987
|
+
return {
|
|
31988
|
+
identifier: '',
|
|
31989
|
+
type: 'unknown',
|
|
31990
|
+
isLID: false,
|
|
31991
|
+
};
|
|
31992
|
+
}
|
|
31993
|
+
// NORMALIZATION STRATEGY: Follow Baileys v7.0.0+ official guidance - MIGRATE TO LIDs
|
|
31994
|
+
// Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
31995
|
+
// "THE GOAL SHOULDN'T BE TO RESTORE THE PN JID ANYMORE, MIGRATE TO LIDs. PNs are WAY LESS RELIABLE."
|
|
31996
|
+
let normalizedIdentifier = rawIdentifier;
|
|
31997
|
+
let shouldPreferLID = false;
|
|
31998
|
+
// Strategy 1: If we have both LID and PN, prefer LID (official recommendation)
|
|
31999
|
+
if (isOriginallyLID) {
|
|
32000
|
+
// Keep the LID - this is the preferred approach per Baileys docs
|
|
32001
|
+
normalizedIdentifier = rawIdentifier;
|
|
32002
|
+
shouldPreferLID = true;
|
|
32003
|
+
this.logger.log(`[${new Date().toISOString()}] Using LID ${rawIdentifier} as primary identifier (Baileys v7.0.0+ best practice)`);
|
|
32004
|
+
}
|
|
32005
|
+
// Strategy 2: If we only have PN but can get LID from store, try to upgrade to LID
|
|
32006
|
+
else if (!isOriginallyLID && rawIdentifier.includes('@s.whatsapp.net')) {
|
|
32007
|
+
// We have a PN, but should try to find corresponding LID if available
|
|
32008
|
+
const lidStore = this.getLIDMappingStore();
|
|
32009
|
+
if (lidStore) {
|
|
32010
|
+
// Note: We would need to implement async LID lookup here in the future
|
|
32011
|
+
// For now, keep the PN but log the situation
|
|
32012
|
+
this.logger.log(`[${new Date().toISOString()}] PN ${rawIdentifier} detected - should lookup corresponding LID for migration`);
|
|
31975
32013
|
}
|
|
31976
32014
|
}
|
|
31977
|
-
//
|
|
32015
|
+
// Clean the normalized identifier
|
|
32016
|
+
const cleanIdentifier = baileyCleanNumber(normalizedIdentifier);
|
|
32017
|
+
// Determine final type based on normalized identifier
|
|
32018
|
+
const finalType = normalizedIdentifier.includes('@lid')
|
|
32019
|
+
? 'lid'
|
|
32020
|
+
: normalizedIdentifier.includes('@s.whatsapp.net')
|
|
32021
|
+
? 'pn'
|
|
32022
|
+
: 'unknown';
|
|
31978
32023
|
return {
|
|
31979
|
-
identifier:
|
|
31980
|
-
type:
|
|
31981
|
-
isLID:
|
|
32024
|
+
identifier: cleanIdentifier,
|
|
32025
|
+
type: finalType,
|
|
32026
|
+
isLID: isOriginallyLID, // Flag indicates if original was LID, even if we normalized to PN
|
|
31982
32027
|
};
|
|
31983
32028
|
}
|
|
31984
32029
|
catch (error) {
|
|
@@ -31987,7 +32032,7 @@ class BaileysProvider extends ProviderClass {
|
|
|
31987
32032
|
return {
|
|
31988
32033
|
identifier: baileyCleanNumberWithLid(key),
|
|
31989
32034
|
type: 'unknown',
|
|
31990
|
-
isLID: false
|
|
32035
|
+
isLID: false,
|
|
31991
32036
|
};
|
|
31992
32037
|
}
|
|
31993
32038
|
}
|
|
@@ -32038,21 +32083,39 @@ class BaileysProvider extends ProviderClass {
|
|
|
32038
32083
|
*/
|
|
32039
32084
|
validateLIDSupport(state) {
|
|
32040
32085
|
try {
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
|
|
32044
|
-
|
|
32086
|
+
// OFFICIAL REQUIREMENT per https://baileys.wiki/docs/migration/to-v7.0.0
|
|
32087
|
+
// "This system requires the auth state to support the lid-mapping and device-index keys"
|
|
32088
|
+
let hasLidMappingKey = false;
|
|
32089
|
+
let hasDeviceIndexKey = false;
|
|
32090
|
+
if (state.keys && typeof state.keys === 'object') {
|
|
32091
|
+
const keyNames = Object.keys(state.keys);
|
|
32092
|
+
hasLidMappingKey = keyNames.some(key => key === 'lid-mapping' ||
|
|
32093
|
+
key === 'lidMapping' ||
|
|
32094
|
+
key.includes('lid-map'));
|
|
32095
|
+
hasDeviceIndexKey = keyNames.some(key => key === 'device-index' ||
|
|
32096
|
+
key === 'deviceIndex' ||
|
|
32097
|
+
key.includes('device-index'));
|
|
32045
32098
|
}
|
|
32046
|
-
|
|
32047
|
-
|
|
32099
|
+
// Critical validation as per official docs
|
|
32100
|
+
if (!hasLidMappingKey) {
|
|
32101
|
+
this.logger.log(`[${new Date().toISOString()}] ⚠️ CRITICAL: Auth state missing 'lid-mapping' key support`);
|
|
32102
|
+
this.logger.log(`[${new Date().toISOString()}] This is REQUIRED for Baileys v7.0.0+ LID system`);
|
|
32048
32103
|
}
|
|
32049
|
-
|
|
32050
|
-
|
|
32051
|
-
|
|
32052
|
-
|
|
32104
|
+
if (!hasDeviceIndexKey) {
|
|
32105
|
+
this.logger.log(`[${new Date().toISOString()}] ⚠️ CRITICAL: Auth state missing 'device-index' key support`);
|
|
32106
|
+
this.logger.log(`[${new Date().toISOString()}] This is REQUIRED for Baileys v7.0.0+ LID system`);
|
|
32107
|
+
}
|
|
32108
|
+
if (hasLidMappingKey && hasDeviceIndexKey) {
|
|
32109
|
+
this.logger.log(`[${new Date().toISOString()}] ✅ Auth state supports LID system requirements (lid-mapping ✓, device-index ✓)`);
|
|
32053
32110
|
}
|
|
32054
|
-
|
|
32055
|
-
this.logger.log(`[${new Date().toISOString()}]
|
|
32111
|
+
else {
|
|
32112
|
+
this.logger.log(`[${new Date().toISOString()}] ❌ Auth state does NOT meet Baileys v7.0.0+ LID requirements`);
|
|
32113
|
+
this.logger.log(`[${new Date().toISOString()}] Please update your authentication state provider`);
|
|
32114
|
+
}
|
|
32115
|
+
// Debug logging
|
|
32116
|
+
if (state.keys) {
|
|
32117
|
+
const availableKeys = Object.keys(state.keys).slice(0, 5); // Show first 5 keys only
|
|
32118
|
+
this.logger.log(`[${new Date().toISOString()}] Available auth keys (sample):`, availableKeys);
|
|
32056
32119
|
}
|
|
32057
32120
|
}
|
|
32058
32121
|
catch (error) {
|
package/dist/utils.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ declare const emptyDirSessions: (pathBase: string) => Promise<unknown>;
|
|
|
2
2
|
/**
|
|
3
3
|
* Cleans and extracts the appropriate identifier from MessageKey, supporting LID system.
|
|
4
4
|
* Uses remoteJidAlt/participantAlt when available according to Baileys v7.0.0+ specs.
|
|
5
|
+
* FOLLOWS OFFICIAL GUIDANCE: Prefers LIDs over PNs as per Baileys documentation.
|
|
6
|
+
* Reference: https://baileys.wiki/docs/migration/to-v7.0.0
|
|
5
7
|
* @param key The MessageKey object from Baileys with LID support
|
|
6
|
-
* @returns The
|
|
8
|
+
* @returns The identifier (preferring LID over PN per official guidance)
|
|
7
9
|
*/
|
|
8
10
|
declare function baileyCleanNumberWithLid(key: {
|
|
9
11
|
senderPn?: string;
|
|
@@ -80,5 +82,5 @@ declare const baileyIsLID: (jid: string) => boolean;
|
|
|
80
82
|
* @returns True if it's a PN, false otherwise
|
|
81
83
|
*/
|
|
82
84
|
declare const baileyIsPN: (jid: string) => boolean;
|
|
83
|
-
export { baileyCleanNumber, baileyGenerateImage, baileyIsValidNumber, emptyDirSessions, baileyCleanNumberWithLid, baileyGetLIDFromPN, baileyGetPNFromLID, baileyGetLIDsFromPNs, baileyStoreLIDPNMapping, baileyStoreLIDPNMappings, baileyIsLID, baileyIsPN };
|
|
85
|
+
export { baileyCleanNumber, baileyGenerateImage, baileyIsValidNumber, emptyDirSessions, baileyCleanNumberWithLid, baileyGetLIDFromPN, baileyGetPNFromLID, baileyGetLIDsFromPNs, baileyStoreLIDPNMapping, baileyStoreLIDPNMappings, baileyIsLID, baileyIsPN, };
|
|
84
86
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,gBAAgB,GAAU,UAAU,MAAM,qBAM1C,CAAA;AAEN
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,gBAAgB,GAAU,UAAU,MAAM,qBAM1C,CAAA;AAEN;;;;;;;GAOG;AACH,iBAAS,wBAAwB,CAAC,GAAG,EAAE;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACvB,GAAG,MAAM,CAgCT;AAED;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,GAAI,QAAQ,MAAM,EAAE,OAAM,OAAe,KAAG,MAsBlE,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,GAAU,QAAQ,MAAM,EAAE,OAAM,MAAiB,KAAG,OAAO,CAAC,IAAI,CAaxF,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,mBAAmB,GAAI,eAAe,MAAM,KAAG,OAsBpD,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,GAAU,UAAU,GAAG,EAAE,aAAa,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAY3F,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,GAAU,UAAU,GAAG,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAYnF,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB,GAAU,UAAU,GAAG,EAAE,cAAc,MAAM,EAAE,KAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYzG,CAAA;AAED;;;;;;GAMG;AACH,QAAA,MAAM,uBAAuB,GAAU,UAAU,GAAG,EAAE,KAAK,MAAM,EAAE,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CAUpG,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,wBAAwB,GAAU,UAAU,GAAG,EAAE,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,OAAO,CAAC,IAAI,CAUrG,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,OAElC,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,OAEjC,CAAA;AAED,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,WAAW,EACX,UAAU,GACb,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/provider-baileys",
|
|
3
|
-
"version": "1.3.5-alpha.
|
|
3
|
+
"version": "1.3.5-alpha.8",
|
|
4
4
|
"description": "Now I'm the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin' letters to relatives / Embellishin' my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Leifer Mendez <leifer33@gmail.com>",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"node-cache": "^5.1.2",
|
|
78
78
|
"sharp": "0.33.3"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "c70fc652620326a2e16142c6f6636dc46b05ae76"
|
|
81
81
|
}
|