From c220ed66569067f16821ef243b18e531b8ff1c31 Mon Sep 17 00:00:00 2001 From: Sourav <87891508+souravkl11@users.noreply.github.com> Date: Sun, 19 Jan 2025 14:12:28 +0530 Subject: [PATCH 1/2] docs: remove reference to non-existent method --- README.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/README.md b/README.md index 40a7eda597e..dc92ffa02e6 100644 --- a/README.md +++ b/README.md @@ -916,20 +916,6 @@ await sock.sendMessage( const [result] = await sock.onWhatsApp(jid) if (result.exists) console.log (`${jid} exists on WhatsApp, as jid: ${result.jid}`) ``` - -### Query Chat History (groups too) - -- You need to have oldest message in chat -```ts -const msg = await getOldestMessageInChat(jid) -await sock.fetchMessageHistory( - 50, //quantity (max: 50 per query) - msg.key, - msg.messageTimestamp -) -``` -- Messages will be received in `messaging.history-set` event - ### Fetch Status ```ts const status = await sock.fetchStatus(jid) From 3c14df229b15640070f7a9d6bf01510f00015c3b Mon Sep 17 00:00:00 2001 From: Sourav <87891508+souravkl11@users.noreply.github.com> Date: Sun, 19 Jan 2025 14:15:05 +0530 Subject: [PATCH 2/2] fix --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index dc92ffa02e6..0e3d0413d6d 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,6 @@ import makeWASocket from '@whiskeysockets/baileys' - [Disappearing Messages](#disappearing-messages) - [User Querys](#user-querys) - [Check If ID Exists in Whatsapp](#check-if-id-exists-in-whatsapp) - - [Query Chat History (groups too)](#query-chat-history-groups-too) - [Fetch Status](#fetch-status) - [Fetch Profile Picture (groups too)](#fetch-profile-picture-groups-too) - [Fetch Bussines Profile (such as description or category)](#fetch-bussines-profile-such-as-description-or-category)