mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add contextInfo support
This commit is contained in:
@@ -498,6 +498,12 @@ export const generateWAMessageContent = async(
|
||||
}
|
||||
}
|
||||
|
||||
if('contextInfo' in message && !!message.contextInfo) {
|
||||
const [messageType] = Object.keys(m)
|
||||
m[messageType] = m[messageType] || {}
|
||||
m[messageType].contextInfo = message.contextInfo
|
||||
}
|
||||
|
||||
return WAProto.Message.fromObject(m)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user