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
|
||||
type: 'template' | 'plain'
|
||||
}
|
||||
| {
|
||||
listReply: Omit<proto.Message.IListResponseMessage, 'contextInfo'>
|
||||
}
|
||||
| {
|
||||
product: WASendableProduct,
|
||||
businessOwnerJid?: string
|
||||
|
||||
@@ -373,6 +373,8 @@ export const generateWAMessageContent = async(
|
||||
productImage: imageMessage,
|
||||
}
|
||||
})
|
||||
} else if('listReply' in message) {
|
||||
m.listResponseMessage = { ...message.listReply }
|
||||
} else {
|
||||
m = await prepareWAMessageMedia(
|
||||
message,
|
||||
|
||||
Reference in New Issue
Block a user