feat: add "getMessage" to example

This commit is contained in:
Adhiraj Singh
2021-12-23 10:54:46 +05:30
parent 5ae0b98636
commit 71a545e972

View File

@@ -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) => {