[英]WhatsApp Business Platform API using Test account doesn't send the message to Mobile
I have created a WhatsApp Business Platform Test account.我已经创建了一个 WhatsApp Business Platform 测试帐户。 I am able to send and receive the hello-world template message but when I send a test message without template(as specified by the api) it doesn't push it to the mobile phone.我能够发送和接收 hello-world 模板消息,但是当我发送没有模板的测试消息(由 api 指定)时,它不会将其推送到手机。 Strangely I get success response in both cases.奇怪的是,我在这两种情况下都得到了成功的回应。
Url: https://graph.facebook.com/v15.0/11ZZZZZZZZZZZZZ/messages Url: https://graph.facebook.com/v15.0/11ZZZZZZZZZZZZZ/消息
Here are the jsons and their responses这是 json 及其响应
{
"messaging_product":"whatsapp",
"to":"91ZZZZZZZZZZ",
"type":"template",
"template":{
"name":"hello_world",
"language":{
"code":"en_US"
}
}
}
{
"messaging_product":"whatsapp",
"contacts":[
{
"input":"91ZZZZZZZZZZ",
"wa_id":"91ZZZZZZZZZZ"
}
],
"messages":[
{
"id":"wamid.HBgMOTE3MjkwMDIxMzYwFQIAERgSMjZCRkQ3RDc0RjM0QkNEZZZZZZ=="
}
]
}
In these case I successfully receive message on the mobile在这些情况下,我在手机上成功收到消息
{
"messaging_product":"whatsapp",
"to":"91ZZZZZZZZZZ",
"type":"text",
"text":{
"preview_url":false,
"body":"Hello World Testing"
}
}
{
"messaging_product":"whatsapp",
"contacts":[
{
"input":"91ZZZZZZZZZZ",
"wa_id":"91ZZZZZZZZZZ"
}
],
"messages":[
{
"id":"wamid.HBgMOTE3MjkwMDIxMzYwFQIAERgSQUJERkM2RUE1RTEwQTExZZZZZZ=="
}
]
}
However I don't receive message on the mobile.但是我没有在手机上收到消息。 Is there anything I am missing in the second case?在第二种情况下我遗漏了什么吗?
I was strugging with the same problem but i figured out you need to reply back to your first template message with a hello or any kind of reply.我遇到了同样的问题,但我发现你需要用你好或任何类型的回复来回复你的第一条模板消息。 Once you reply then only you can send a message through watsapp api without template or you can inititate conversation through watsapp api.回复后,只有您可以通过 watsapp api 发送消息而不使用模板,或者您可以通过 watsapp api 发起对话。
Hope this answer helps you.希望这个答案对你有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.