gabrieldwight / Whatsapp-Business-Cloud-Api-Net

This is C# wrapper of whatsapp business cloud api for .NET
MIT License
296 stars 113 forks source link

InteractiveMessageParameter Missing Video support #97

Closed mokkymiah closed 1 month ago

mokkymiah commented 1 month ago

Is your feature request related to a problem? Please describe. When using InteractiveMessageParameter, the video property is missing.

Describe the solution you'd like Please add

   public InteractiveMessageParameter
   {
       [JsonProperty("video", NullValueHandling = NullValueHandling.Ignore)]
       public InteractiveMessageVideo Video { get; set; }

   }

   public class InteractiveMessageVideo
   {
       [JsonProperty("id")]
       public string Id { get; set; }

   }

Describe alternatives you've considered We are currently using an override. However we are getting an error "Malformed token" but the message still goes through to whatsapp with the video attachment just fine.

    {

        [JsonProperty("video", NullValueHandling = NullValueHandling.Ignore)]
        public InteractiveMessageVideo Video { get; set; }

    }

Additional context Additional types available when creating template via meta:

image

mokkymiah commented 1 month ago

I have a branch ready but unable to push up to create a PR.

gabrieldwight commented 1 month ago

I will add the solution