Closed surexxx closed 1 year ago
Hi @surexxx! Thanks for pointing this out and for your contribution. I added this item in my current sprint, so I can reasonably tell it will be done shortly. I'll share feedback regarding the progress. Have a great day!
@surexxx Just to clarify a bit, how would you use this class exactly? Deserializing JSON into WhatsAppInboundMessage
?
I'm asking because we don't provide any webhook-related features in the SDK.
Yes, I'm using it to deserialize the WhatsApp JSON message:
You also provide a class like this in regard of receiving inbound SMS message:
Thanks for sharing. I just wanted to confirm my thoughts.
Hi @surexxx, Sorry for the delay. This one took longer than expected, as we had a lot of discussions about whether we should provide Webhooks classes in the SDK (or not). The class is now available under Messages/Webhooks, and supports all kind of messages (not just WhatsApp). You can look at the PR here #382. You'll have to update to v6.1.0 to use it.
I'm started to using Messaging SDK and see that WhatsAppInboundMessage class is missing from SDK, that represents the inbound message structure got from webhook.
The JSON structure of message is descibed here: https://developer.vonage.com/api/messages-olympus?theme=dark#webhooks
Using the structure above a possible implementation is here:
Please add it to your dotnet messaging sdk.