mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add listReply
This commit is contained in:
@@ -140,6 +140,9 @@ export type AnyRegularMessageContent = (
|
|||||||
buttonReply: ButtonReplyInfo
|
buttonReply: ButtonReplyInfo
|
||||||
type: 'template' | 'plain'
|
type: 'template' | 'plain'
|
||||||
}
|
}
|
||||||
|
| {
|
||||||
|
listReply: Omit<proto.Message.IListResponseMessage, 'contextInfo'>
|
||||||
|
}
|
||||||
| {
|
| {
|
||||||
product: WASendableProduct,
|
product: WASendableProduct,
|
||||||
businessOwnerJid?: string
|
businessOwnerJid?: string
|
||||||
|
|||||||
@@ -373,6 +373,8 @@ export const generateWAMessageContent = async(
|
|||||||
productImage: imageMessage,
|
productImage: imageMessage,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else if('listReply' in message) {
|
||||||
|
m.listResponseMessage = { ...message.listReply }
|
||||||
} else {
|
} else {
|
||||||
m = await prepareWAMessageMedia(
|
m = await prepareWAMessageMedia(
|
||||||
message,
|
message,
|
||||||
|
|||||||
Reference in New Issue
Block a user