Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example payload for List and Buttons #16

Open
ssteeltm opened this issue Jun 29, 2023 · 5 comments
Open

Example payload for List and Buttons #16

ssteeltm opened this issue Jun 29, 2023 · 5 comments

Comments

@ssteeltm
Copy link

Hello, could you please share an Example of payload for List and Buttons ?

@asternic
Copy link
Owner

I think it only work with whatsapp business numbers which I have non for testing, so it will silentily discard the message if you do it with a regular whatsapp number. So I cannot say if it will work for you or not, but you can try from the command line with something similar to this for a list:

echo "{ \"Phone\": \"18005553333\", \"Title\": \"How you doin\", \"Description\": \"How you doin\", \"ButtonText\": \"How you doin\", \"FooterText\": \"asdasd asdmb nasdi\", \"Sections\": [ { \"Title\": \"How you doin 1\", \"Rows\": [ { \"Title\": \"Yes\", \"Description\": \"askjhdkjashdkjash\" }, { \"Title\": \"Yes\", \"Description\": \"askjhdkjashdkjash\" } ] } ] }" | curl -v -X POST -H 'Token: 123412341234' -H 'Content-Type: application/json' -d @-  http://localhost:8080/chat/send/list

@ssteeltm
Copy link
Author

Thanks!
I'll try with non and business number, feedback here.

@Leo556677
Copy link

tengo el problema, la acción de solicitud de http la tengo asi:
{
"Phone": "%celular",
"Title": "How you doin",
"Description": "How you doin",
"ButtonText": "How you doin",
"FooterText": "asdasd asdmb nasdi",
"Sections": [
{
"Title": "How you doin 1",
"Rows": [
{
"Title": "Yes",
"Description": "askjhdkjashdkjash"
},
{
"Title": "Yes",
"Description": "askjhdkjashdkjash"
}
]
}
]
}
Método POST
URL: http://localhost:8080/chat/send/list
HEAD:
Token:******
Content-Type: application/json

 EL error que sal es este:
 00.16.45/LicenseCheckerTasker Checking cached only

00.16.45/LicenseCheckerTasker cache validity left -10541312
00.16.45/LicenseCheckerTasker Cached status: Licensed
00.16.45/LicenseCheckerTasker Cached only: Licensed
00.16.45/Ew add wait type EasyAction1 time 2147483647
00.16.45/Ew add wait type EasyAction1 done
00.16.45/E add wait task
00.16.46/E Error: 1
00.16.46/E {"code":500,"error":"Error sending message: server returned error 405","success":false}

@asternic
Copy link
Owner

asternic commented Sep 1, 2024

Hola, esos logs parecen ser de Tasker, no de Wuzapi, asi que no son muy utiles por aquí. De todos modos, como respondí anteriormente, es muy posible que los mensajes tipo lista/botones no funcionen porque son descartados por whatsapp/meta. Solo te funcionarán si usas Whatsapp Businness API directo de Meta.

@Leo556677
Copy link

gracias por tu tiempo,. si tuvieras mas temas relacionados a esto de las automatizaciones con wuzapi, seria genial que lo compartieras. muchas bendiciones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants