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,
|
printQRInTerminal: true,
|
||||||
auth: state,
|
auth: state,
|
||||||
msgRetryCounterMap,
|
msgRetryCounterMap,
|
||||||
|
generateHighQualityLinkPreview: true,
|
||||||
// implement to handle retries
|
// implement to handle retries
|
||||||
getMessage: async key => {
|
getMessage: async key => {
|
||||||
if(store) {
|
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
|
return msg?.message || undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user