mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add custom patchMsg function + remove patch for btns
This commit is contained in:
@@ -77,6 +77,14 @@ export type SocketConfig = {
|
||||
* */
|
||||
shouldIgnoreJid: (jid: string) => boolean | undefined
|
||||
|
||||
/**
|
||||
* Optionally patch the message before sending out
|
||||
* */
|
||||
patchMessageBeforeSending: (
|
||||
msg: proto.IMessage,
|
||||
recipientJids: string[],
|
||||
) => Promise<proto.IMessage> | proto.IMessage
|
||||
|
||||
/** verify app state MACs */
|
||||
appStateMacVerification: {
|
||||
patch: boolean
|
||||
|
||||
Reference in New Issue
Block a user