Частичное отключениеshare-external
How to check if recipient number uses WhatsApp
1

Hi,

I'm working on an app that manages the jobs of a company that provides repair and replacement services for kitchen appliances in managed properties that are rented out.

One of their needs is to send text messages to the tenants to book a visit for repair or replacement.

My question is, how to use the API to check if the tenant is using WhatsApp, given their mobile number? If the tenant uses WhatsApp - the system sends a message via WhatsApp API, if not - the system sends a normal text message (SMS) using another provider's API.

Thank you!

Hristo
Вопрос задан около 5 мес. назад
Выбранный ответ
1

This is not possible.

The terms of use of the Business API require a Business to receive opt-in from a user before sending them messages on WhatsApp. When you build the workflow to receive this opt-in from users, you can directly confirm with them whether they use WhatsApp.

20 июня в 07:38
Bar
Hristo

Then how do others provide such functionality? Like 2chat - https://developers.2chat.co/docs/API/WhatsApp/check-number

24 июня в 03:53
Hristo

Also, how will I send opt-in request if the number doesn't use WhatsApp? How do I know if they can receive it?

24 июня в 03:55
Bar

Your opt-in should be done off of WhatsApp, on whichever platform you currently use to collect user contact details and gain permissions to leverage this info for various purposes.

24 июня в 14:50
Hristo

Meaning I need to ask the client if they have WhatsApp or not. I can't check in any way if they are using WhatsApp or not, before sending any messages? If that's correct, then how 2chat does it?

2 июля в 10:14