From 3176551a306900a3e3840260aa00aee611f4a264 Mon Sep 17 00:00:00 2001 From: Guilherme <50055027+guiguicdd@users.noreply.github.com> Date: Tue, 28 Dec 2021 15:49:03 -0300 Subject: [PATCH] MD - Update README.md (#1072) * Update README.md * Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ed02ca1..06eda13 100644 --- a/README.md +++ b/README.md @@ -513,7 +513,6 @@ WA uses an encrypted form of communication to send chat/app updates. This has be - Delete message for me ``` ts - // mark it unread await sock.chatModify( { clear: { message: { id: 'ATWYHDNNWU81732J', fromMe: true } } }, '123456@s.whatsapp.net', @@ -633,10 +632,10 @@ Of course, replace ``` xyz ``` with an actual ID. const metadata = await sock.groupMetadata("abcd-xyz@g.us") console.log(metadata.id + ", title: " + metadata.subject + ", description: " + metadata.desc) ``` -- To join the group using the invitation code (not supported yet) +- To join the group using the invitation code ``` ts - const response = await sock.acceptInvite("xxx") - console.log("joined to: " + response.gid) + const response = await sock.groupAcceptInvite("xxx") + console.log("joined to: " + response) ``` Of course, replace ``` xxx ``` with invitation code.