mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: example TypeError
This commit is contained in:
@@ -34,10 +34,11 @@ const startSock = async() => {
|
||||
printQRInTerminal: true,
|
||||
auth: state,
|
||||
msgRetryCounterMap,
|
||||
generateHighQualityLinkPreview: true,
|
||||
// implement to handle retries
|
||||
getMessage: async key => {
|
||||
if(store) {
|
||||
const msg = await store.loadMessage(key.remoteJid!, key.id!, undefined)
|
||||
const msg = await store.loadMessage(key.remoteJid!, key.id!)
|
||||
return msg?.message || undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user