Send Contact

Get All Contact

Retrieves all your whatsapp contacts

function getAllContacts()

Get Contact by Id

Retrieves contact detail object of given contact id

Paramater

Description

contactId

Contact id (e.g, [code country][number] 6283838204803)

function getContact(string $contactId)

Block Contact

Parameter

Description

contactNumber

Contact number (e.g, [code country][number] 6283838204803)

function contactBlock(string $contactNumber)

Unblock Contact

Parameter

Description

contactNumber

Contact number (e.g, [code country][number] 6283838204803)

function contactUnblock(string $contactNumber)

Get Blocked Ids Contact

function getBlockedIds()

Send Contact

Parameter

Description

contactNumber

Contact number (e.g, [code country][number] 6283838204803)

receiverNumber

Receiver number (e.g, [code country][number] 6283838204803)

isGroup

fill true if the receiverNumber is group (e,g [code country][number]-[random number] 6283838204803-0000@g.us)

function sendContact(String $contactNumber, String $receiverNumber)

Send Virtual Card (VCard)

Parameter

Description

fullName

The display name for the contact. CANNOT BE NULL OTHERWISE IT WILL SEND SOME RANDOM CONTACT FROM YOUR ADDRESS BOOK.

phoneNumber

Phone number (e.g, [code country][number] 6283838204803)

receiverNumber

Receiver number (e.g, [code country][number] 6283838204803)

isGroup

fill true if the receiverNumber is group (e,g [code country][number]-[random number] 6283838204803-0000@g.us)

function sendVCard(String $fullName, String $phoneNumber, String $receiverNumber)

Last updated

Was this helpful?