mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: sending multiple contacts
This commit is contained in:
@@ -224,7 +224,7 @@ export const generateWAMessageContent = async(
|
||||
if(contactLen === 1) {
|
||||
m.contactMessage = WAProto.ContactMessage.fromObject(message.contacts.contacts[0])
|
||||
} else {
|
||||
m.contactsArrayMessage = WAProto.ContactsArrayMessage.fromObject(message.contacts)
|
||||
m.contactsArrayMessage = WAProto.ContactsArrayMessage.fromObject({ contacts: message.contacts })
|
||||
}
|
||||
} else if('location' in message) {
|
||||
m.locationMessage = WAProto.LocationMessage.fromObject(message.location)
|
||||
|
||||
Reference in New Issue
Block a user