@d0v3riz/baileys 6.6.2 → 6.6.3
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/Utils/generics.js +1 -1
- package/package.json +1 -1
package/lib/Utils/generics.js
CHANGED
|
@@ -148,7 +148,7 @@ async function promiseTimeout(ms, promise) {
|
|
|
148
148
|
}
|
|
149
149
|
exports.promiseTimeout = promiseTimeout;
|
|
150
150
|
// generate a random ID to attach to a message
|
|
151
|
-
const generateMessageID = () => 'WHPI' + (0, crypto_1.randomBytes)(6).toString('hex').toUpperCase();
|
|
151
|
+
const generateMessageID = () => (process.env.WHATSAPP_CONN_IDMSG || 'WHPI') + (0, crypto_1.randomBytes)(6).toString('hex').toUpperCase();
|
|
152
152
|
exports.generateMessageID = generateMessageID;
|
|
153
153
|
function bindWaitForEvent(ev, event) {
|
|
154
154
|
return async (check, timeoutMs) => {
|