Closed guskuma closed 4 months ago
When receiving a forwarded "contacts" type message, Message "data" property that was supposed to be a Contact array, turns into an object filled with Contacts and a "context" property.
Adding context to message.data is causing this issue: https://github.com/tawn33y/whatsapp-cloud-api/blob/32270afa807b398f4d02e91a7018f0c1721f0575/src/startExpressServer.ts#L113
This can be solved by moving "context" property to Message. @tawn33y tell me if this is ok for you and I can do it and open a PR.
Thanks in advance.
Closing - please read more here.
When receiving a forwarded "contacts" type message, Message "data" property that was supposed to be a Contact array, turns into an object filled with Contacts and a "context" property.
Adding context to message.data is causing this issue: https://github.com/tawn33y/whatsapp-cloud-api/blob/32270afa807b398f4d02e91a7018f0c1721f0575/src/startExpressServer.ts#L113
This can be solved by moving "context" property to Message. @tawn33y tell me if this is ok for you and I can do it and open a PR.
Thanks in advance.