wppconnect-team / WPP4Delphi

WPP4Delphi is an open-source project with the aim of exporting functions from WhatsApp Web for Delphi, which can be used to support the creation of any interaction.
Apache License 2.0
187 stars 61 forks source link

Get_SendPollMessageResponse not triggering #80

Closed kayaliabd closed 2 months ago

kayaliabd commented 2 months ago

the Event Get_SendPollMessageResponse is not triggering when I send a new poll so I can't get message ID of sent poll

kayaliabd commented 2 months ago

Alright, I just found the missing peace of code to fix this issue file: uTWWconnect.pas line: 3467 if (PTypeHeader In [Th_GetAllChats, Th_getUnreadMessages, Th_GetMessageById, Th_sendFileMessage, Th_sendTextMessage, Th_sendListMessage, //Adicionado por Marcelo 31/05/2022 Th_sendTextMessageEx,Th_sendFileMessageEx, Th_sendListMessageEx, //temis 03-06-2022 Th_sendLocationMessageEx, //Add Marcelo 17/09/2022 Th_sendVCardContactMessageEx, //Add Marcelo 16/01/2023 Th_IncomingiCall]) then //Adicionado por Marcelo 17/06/2022

just add Th_sendCreatePollMessageEx to the end of the array

new code: if (PTypeHeader In [Th_GetAllChats, Th_getUnreadMessages, Th_GetMessageById, Th_sendFileMessage, Th_sendTextMessage, Th_sendListMessage, //Adicionado por Marcelo 31/05/2022 Th_sendTextMessageEx,Th_sendFileMessageEx, Th_sendListMessageEx, //temis 03-06-2022 Th_sendLocationMessageEx, //Add Marcelo 17/09/2022 Th_sendVCardContactMessageEx, //Add Marcelo 16/01/2023 Th_IncomingiCall, Th_sendCreatePollMessageEx]) then //Adicionado por Marcelo 17/06/2022