aldinokemal / go-whatsapp-web-multidevice

API for Whatsapp Web Multi Device Version, Support UI & Webhook
MIT License
391 stars 171 forks source link

šŸž Send Poll is not working #131

Open jffrancob opened 2 months ago

jffrancob commented 2 months ago

What happened?

After using the Send Poll resource, the message appears to be sent, but no content is displayed in WhatsApp

Reproduction Steps

The behavior can be replicated:
1. Using the Send Poll endpoint as described in the openapi.yaml documentation.
2. Using Send Poll in the Dashboard.

Relevant log output

whatsapp_go-1  | 15:22:24 | 200 |  916.284853ms | 172.17.0.1 | POST | /send/poll | -
whatsapp_go-1  | 15:22:25.955 [Client/Send DEBUG] <ack class="receipt" id="3EB05AC105DDDDC319E95D" to="573148XXXXX:36@s.whatsapp.net" type="inactive"/>
whatsapp_go-1  | 15:22:26.262 [Client/Recv DEBUG] <receipt from="573012YYYYY:1@s.whatsapp.net" id="3EB05AC105DDDDC319E95D" recipient="573148XXXXX@s.whatsapp.net" t="1712676146" type="sender"/>
whatsapp_go-1  | 15:22:26.262 [Client/Recv DEBUG] <receipt from="573148XXXXX:29@s.whatsapp.net" id="3EB05AC105DDDDC319E95D" t="1712676146"/>
whatsapp_go-1  | 15:22:26.263 [Client/Send DEBUG] <ack class="receipt" id="3EB05AC105DDDDC319E95D" to="573148XXXXX:29@s.whatsapp.net"/>
whatsapp_go-1  | 15:22:26.263 [Main INFO] 3EB05AC105DDDDC319E95D was delivered to 573148XXXXX:29@s.whatsapp.net in 573148XXXXX@s.whatsapp.net at 2024-04-09 15:22:26 +0000 UTC
whatsapp_go-1  | 15:22:26.263 [Client/Send DEBUG] <ack class="receipt" id="3EB05AC105DDDDC319E95D" recipient="573148XXXXX@s.whatsapp.net" to="573012YYYYY:1@s.whatsapp.net" type="sender"/>
whatsapp_go-1  | 15:22:26.415 [Client/Recv DEBUG] <receipt from="573148XXXXX@s.whatsapp.net" id="3EB05AC105DDDDC319E95D" t="1712676146"/>
whatsapp_go-1  | 15:22:26.416 [Client/Send DEBUG] <ack class="receipt" id="3EB05AC105DDDDC319E95D" to="573148XXXXX@s.whatsapp.net"/>
whatsapp_go-1  | 15:22:26.416 [Main INFO] 3EB05AC105DDDDC319E95D was delivered to 573148XXXXX@s.whatsapp.net at 2024-04-09 15:22:26 +0000 UTC

Screenshots or Additional Context

No response

Application Version

v4.12.0

Verification

aldinokemal commented 2 months ago

You might want to try with a different account. I sent a poll from the homepage menu, and it worked.

Screenshot 2024-04-10 at 12 28 06
jffrancob commented 2 months ago

I have already tried this. But although the poll is sent, received, and displayed in the destination, when I look in the source, the poll does not appear at all. It's weird because with other types of messages like images, the content is displayed. Now the problem is that when the recipient responds to the poll, there is no way to see what the response was.