Maytapi WhatsApp

유료
분류별 Maytapi | 업데이트됨 एक महीने पहले | Communication
인기

9 / 10

지연 시간

669ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

Always sending messages, return success in spite of the message doesn't reach out the recipient

Rapid account: Laurabullo
laurabullo
2 महीने पहले

Hi.

I see that sending messages, always the response from the server is success in spite of the message doesn’t reach out the recipient. How can I know if the message was reached by the receiver number?

Rapid account: Maytapi
maytapi Commented 2 महीने पहले

After opening the project, run the following command in the ngrok terminal:ngrok http 3000
Then, set the returned link using the normal setWebhook service of the API and try it once again.

Thanks

Rapid account: Laurabullo
laurabullo Commented 2 महीने पहले

Ok, I am trying to connect through ngrok to the port 3000 and I receive a refused connection. In your example code establishs a tunnel and gets a public URL. Per I see it is necessary to set the webhook. Do you know if there is other alternative to do this without using ngrok?

async function setup_network()
try{
console.log(‘ENTRA EL SETUP NETWORK’)
let public_url = await ngrok.connect(3000);
console.log(Public Url:${public_url});
let webhook_url = ${public_url}/webhook;
console.log(webhook_url,‘webkook_url’)
let url = ${INSTANCE_URL}/${PRODUCT_ID}/setWebhook;
let response = await rp(url, {
method: ‘POST’,
body: { webhook: webhook_url },
headers: {
‘x-maytapi-key’: API_TOKEN,
‘Content-Type’: ‘application/json’,
},
json: true,
});
console.log(Response: ${JSON.stringify(response)});
return response;
}
catch(e){
return Promise.resolve(e)
}}

Rapid account: Maytapi
maytapi Commented 2 महीने पहले

Hello,

You could check these via your webhook when you set your webhook.
You could check documentation about how to set webhook.

Thanks

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입