@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.
@@ -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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d0v3riz/baileys",
3
- "version": "6.6.2",
3
+ "version": "6.6.3",
4
4
  "description": "WhatsApp API",
5
5
  "keywords": [
6
6
  "whatsapp",