I cannot send test whatsapp message with the API using the test numbers.
1

I'm starting to trying the whatsapp API to integrate with my developments. I added a test number, I added a nummber to send the message I generrate de token.

I can send the test message from the setting page however when I'm trying to send the message using Python it does not work, no errors showed, but the message never enter to the whatsapp

Here are the Python code Im using to try:

TOKEN DE ACCESO DE FACEBOOK

token='MY TOKEN'

IDENTIFICADOR DE NÚMERO DE TELÉFONO

idNumeroTeléfono='431736870031509' idCuentaBusinessWA= '488364984349085'

TELEFONO QUE RECIBE (EL DE NOSOTROS QUE DIMOS DE ALTA)

telefonoEnvia='543513595891'

MENSAJE A ENVIAR

textoMensaje="Probando envio"

URL DE LA IMAGEN A ENVIAR

urlImagen='https://i.imgur.com/r5lhxgn.png'

INICIALIZAMOS ENVIO DE MENSAJES

mensajeWa=WhatsApp(token,idNumeroTeléfono)

ENVIAMOS UN MENSAJE DE TEXTO

mensajeWa.send_message(textoMensaje,telefonoEnvia)

ENVIAMOS UNA IMAGEN

mensajeWa.send_image(image=urlImagen,recipient_id=telefonoEnvia,)

print("Mensaje enviado")

Sebastian
질문함 지난 화요일