TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, DataView, KeyObject, or CryptoKey. Received undefined
at new NodeError (node:internal/errors:371:5)
at prepareSecretKey (node:internal/crypto/keys:570:11)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:133:9)
at new Cipheriv (node:internal/crypto/cipher:243:3)
at Object.createCipheriv (node:crypto:143:10)
at Object.aesEncrypt (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/Utils.js:108:24)
at WAConnection.sendBinary (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/0.Base.js:321:26)
at WAConnection. (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/4.Events.js:86:18)
at WAConnection.emit (node:events:520:28)
at WAConnection.emit (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/4.Events.js:664:41) {
code: 'ERR_INVALID_ARG_TYPE'
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, DataView, KeyObject, or CryptoKey. Received undefined at new NodeError (node:internal/errors:371:5) at prepareSecretKey (node:internal/crypto/keys:570:11) at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:133:9) at new Cipheriv (node:internal/crypto/cipher:243:3) at Object.createCipheriv (node:crypto:143:10) at Object.aesEncrypt (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/Utils.js:108:24) at WAConnection.sendBinary (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/0.Base.js:321:26) at WAConnection. (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/4.Events.js:86:18)
at WAConnection.emit (node:events:520:28)
at WAConnection.emit (/home/container/node_modules/@adiwajshing/baileys/lib/WAConnection/4.Events.js:664:41) {
code: 'ERR_INVALID_ARG_TYPE'