From fae06e86ac37f05aa093a9e523c335752052a419 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Thu, 9 Jul 2020 22:44:38 +0530 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9bdd1e..4c06bc3 100644 --- a/README.md +++ b/README.md @@ -240,7 +240,7 @@ await client.modifyChat (jid, ChatModification.archive) // archive chat await client.modifyChat (jid, ChatModification.unarchive) // unarchive chat const response = await client.modifyChat (jid, ChatModification.pin) // pin the chat -await client.modifyChat (jid, ChatModification.unarchive, {stamp: response.stamp}) +await client.modifyChat (jid, ChatModification.unpin, {stamp: response.stamp}) const mutedate = new Date (new Date().getTime() + 8*60*60*1000) // mute for 8 hours in the future await client.modifyChat (jid, ChatModification.mute, {stamp: mutedate}) // mute