Closed ehussain closed 1 year ago
Same issue with docx file and other file formats. Here is sample webhook json.
{
"event":"message.any",
"session":"15111",
"payload":{
"id":"false_XXXXXXXXXXX@c.us_3EB0EA02XZXXXXXXXCAC",
"timestamp":1692067481,
"from":"XXXXXXXXXXX@c.us",
"fromMe":false,
"hasMedia":false,
"_data":{
"key":{
"remoteJid":"XXXXXXXXXXX@s.whatsapp.net",
"fromMe":false,
"id":"3EB0EA02XZXXXXXXXCAC"
},
"messageTimestamp":1692067481,
"pushName":"Hussain C",
"broadcast":false,
"message":{
"documentMessage":{
"url":"https:\/\/mmg.whatsapp.net\/v\/t62.7119-24\/34785608_6384510138293164_5227893357059529753_n.enc?ccb=11-4&oh=01_AdS8bJxFnO7NIsJ9hfBhPvAdodna976vGxypqZyCO0tbDQ&oe=650242A6&mms3=true",
"mimetype":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document",
"title":"Agent Status.docx",
"fileSha256":"MGKeUTWt0R4YT9YyRjLVfLijDP4CY6jS7MWwXTlsOIw=",
"fileLength":"36274",
"mediaKey":"H4kYTsQNRyI461MrFRBMcB1SfefucKcojVtBjomDNzs=",
"fileName":"Agent Status.docx",
"fileEncSha256":"rZTVF3YqQa10O136Ip\/RxvmmPN0MtobNIPX3i0tOxyw=",
"directPath":"\/v\/t62.7119-24\/34785608_6384510138293164_5227893357059529753_n.enc?ccb=11-4&oh=01_AdS8bJxFnO7NIsJ9hfBhPvAdodna976vGxypqZyCO0tbDQ&oe=650242A6",
"mediaKeyTimestamp":"1692068219",
"contactVcard":false
},
"messageContextInfo":{
"deviceListMetadata":{
"senderKeyHash":"aUcof+y6Rxu5uQ==",
"senderTimestamp":"1690787258",
"recipientKeyHash":"pp3vsbYT6fsObA==",
"recipientTimestamp":"1691670222"
},
"deviceListMetadataVersion":2
}
}
}
},
"engine":"NOWEB"
}
@ehussain hi! Did it work before, have you noticed? Looking at this anyway, just wanna scope the bug a little
No, we started using NOWEB just couple of days ago and integrating this. While integrating I found this cause. I have no idea if it appeared before.
Fixed in 2023.8.16
Hello, I have updated the docker image version and trying with latest version.
We are not receiving webhook at all for document file. Hence I am not able to test this. It seems webhook itself stopped coming.
Hi! Just tested it with the latest 2023.8.19
version and I do receive message
event for just text messages, image messages and document files (NOWEB engine)
Is there any errors in docker logs that could help us?
Hello,
I sent a PDF file to NOWEB instance and webhook contained this information. But it does not include any mediaUrl or hasMedia parameter. There is no way to download the file from instance to server because it does not include any URL.
Here is sample webhook received for PDF file.
Please provide a fix. Also provide relevant fix for other types of file like docx, xlsx etc.