mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update messages.ts
This commit is contained in:
@@ -488,6 +488,16 @@ export const generateWAMessageContent = async(
|
|||||||
m[messageType].contextInfo.mentionedJid = message.mentions
|
m[messageType].contextInfo.mentionedJid = message.mentions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if('edit' in message) {
|
||||||
|
m = {
|
||||||
|
protocolMessage: {
|
||||||
|
key: message.edit,
|
||||||
|
editedMessage: m,
|
||||||
|
type: WAProto.Message.ProtocolMessage.Type.MESSAGE_EDIT
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return WAProto.Message.fromObject(m)
|
return WAProto.Message.fromObject(m)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user