Closed The3ven closed 11 months ago
Is there an existing issue for this?
- [x] I have searched the existing issues
Describe the bug
I'm sending a message to make a sticker in my code to make a sticker and reply to the same message it needs platform type as soon as lib tries to check the platform it crash.
logs here:-- /app/node_modules/whatsapp-web.js/src/structures/Message.js:91 this.deviceType = data.id.id.length > 21 ? 'android' : data.id.id.substring(0, 2) == '3A' ? 'ios' : 'web'; ^ TypeError: data.id.id.substring is not a function at Message._patch (/app/node_modules/whatsapp-web.js/src/structures/Message.js:91:75) at new Message (/app/node_modules/whatsapp-web.js/src/structures/Message.js:18:24) at Client.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:699:16) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) npm WARN config production Use
--omit=dev
instead.Expected behavior
it must download my media convert it to a sticker using ffmpg and reply to the user who is requested for it.
Steps to Reproduce the Bug or Issue
open whatsapp type my custom command !sticker and it crashed
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device
Environment
NPM: 8.19.2 | NODE: v16.18.1 | HOST: railway | KERNEL: 6.1.0-9-cloud-amd64
Additional context
No response
Bro now days WhatsApp is multi device if you don't want to use multi device then you want to uninstall WhatsApp And adiwajshing/Baileys better then WhatsApp web js use it but now ceased so use whiskeysockets Baileys alternative of adiwajshing Baileys
I can't understand 😭
Is there an existing issue for this?
Describe the bug
I'm sending a message to make a sticker in my code to make a sticker and reply to the same message it needs platform type as soon as lib tries to check the platform it crash.
logs here:-- /app/node_modules/whatsapp-web.js/src/structures/Message.js:91 this.deviceType = data.id.id.length > 21 ? 'android' : data.id.id.substring(0, 2) == '3A' ? 'ios' : 'web'; ^ TypeError: data.id.id.substring is not a function at Message._patch (/app/node_modules/whatsapp-web.js/src/structures/Message.js:91:75) at new Message (/app/node_modules/whatsapp-web.js/src/structures/Message.js:18:24) at Client.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:699:16) at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm WARN config production Use
--omit=dev
instead.Expected behavior
it must download my media convert it to a sticker using ffmpg and reply to the user who is requested for it.
Steps to Reproduce the Bug or Issue
open whatsapp type my custom command !sticker and it crashed
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device
Environment
NPM: 8.19.2 | NODE: v16.18.1 | HOST: railway | KERNEL: 6.1.0-9-cloud-amd64
Additional context
No response