From 71a545e97221a119d1906c3c9f4901c87226c4a6 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Thu, 23 Dec 2021 10:54:46 +0530 Subject: [PATCH] feat: add "getMessage" to example --- Example/example.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Example/example.ts b/Example/example.ts index d3e48d8..cb63358 100644 --- a/Example/example.ts +++ b/Example/example.ts @@ -10,7 +10,13 @@ const startSock = () => { const sock = makeWASocket({ logger: P({ level: 'trace' }), printQRInTerminal: true, - auth: state + auth: state, + // implement to handle retries + getMessage: async key => { + return { + conversation: 'hello' + } + } }) const sendMessageWTyping = async(msg: AnyMessageContent, jid: string) => {