Create a Contacts object for the API
Array of contact's components
import { Contacts, Name, Address, Phone } from "whatsapp-api-js/messages";
const contact_message = new Contacts([
new Name("John Doe", "John", "Doe", undefined, "Mr.", "Jr."),
new Address(
"United States",
"US",
"FL",
"Miami",
"221B Baker Street",
"33101",
"Mystery"
),
new Phone("+123456789", "Mystery", "123456789")
]);
Contacts API object