Fix ContactsArrayMessage and add getBusinessProfile (#1074)

* Fix: ContactsArrayMessage and add getBusinessProfile

* delete package-lock.json

* edit readme.md

* add bussines hours

* make type same with leagcy

* revert
This commit is contained in:
BochilGaming
2022-01-06 23:45:52 +07:00
committed by GitHub
parent 7ffa10a5c5
commit 0b5d772b08
4 changed files with 61 additions and 5 deletions

View File

@@ -253,7 +253,7 @@ export const generateWAMessageContent = async(
if(contactLen === 1) {
m.contactMessage = WAProto.ContactMessage.fromObject(message.contacts.contacts[0])
} else {
m.contactsArrayMessage = WAProto.ContactsArrayMessage.fromObject({ contacts: message.contacts })
m.contactsArrayMessage = WAProto.ContactsArrayMessage.fromObject(message.contacts)
}
} else if('location' in message) {
m.locationMessage = WAProto.LocationMessage.fromObject(message.location)