#GroupChat undefined
3 messages · Page 1 of 1 (latest)
hello there seems to be an update on whatsapp? or a problem with wweb.js I don't really understand but the results of groupChat.isGroup and groupChat.participants are undefined but for contact.isGroup the result is correct to produce a boolean, is anyone experiencing the same thing? thanks I hope I get the answer here.
The code:
client.on(“message”, async(msg: WAWebJS.Message) => {
if (msg.body === “test”) {
const chat = await msg.getChat()
const contact = await msg.getContact()
console.log(chat.isGroup)
console.log(contact.isGroup)
}
})```
Do a search before post