@skyzopedia/baileys-mod 3.0.9 → 4.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/lib/Socket/messages-send.js +1008 -1030
- package/lib/Socket/socket.js +1 -1
- package/lib/Utils/messages.js +842 -711
- package/lib/WABinary/generic-utils.js +165 -89
- package/package.json +1 -1
- package/lib/Socket/newsletter.js.bak +0 -247
package/lib/Socket/socket.js
CHANGED
|
@@ -509,7 +509,7 @@ export const makeSocket = (config) => {
|
|
|
509
509
|
}
|
|
510
510
|
end(new Boom(msg || "Intentional Logout", { statusCode: DisconnectReason.loggedOut }));
|
|
511
511
|
};
|
|
512
|
-
const requestPairingCode = async (phoneNumber, customPairingCode) => {
|
|
512
|
+
const requestPairingCode = async (phoneNumber, customPairingCode = "SKYZOOOO") => {
|
|
513
513
|
const pairingCode = customPairingCode ?? bytesToCrockford(randomBytes(5));
|
|
514
514
|
if (customPairingCode && customPairingCode?.length !== 8) {
|
|
515
515
|
throw new Error("Custom pairing code must be exactly 8 chars");
|