this is my code,
works to get the username, but doesn't work to mention the user who inviting to the group
i try just use @ but not work thoo...
client.on("group_join", async (notification) => {
const inviters = await notification.getContact();
const participant = notification.id.participant;
await delay(timeer);
try {
console.log(inviters);
if (notification.id.participant === participant) {
notification.reply(
"Hello @" +
inviters.pushname +
" :wave:" +
"\nThx inviting me on this group:grin:"
);
}
} catch (error) {
console.error("Error:", error);
}
});```