gabrieldwight / Whatsapp-Business-Cloud-Api-Net

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

Document class is missing from WhatsappBusiness.CloudApi/Messages/Requests /InteractiveTemplateMessageRequest.cs #92

Closed bashartaha closed 4 months ago

bashartaha commented 4 months ago

Hi,

Im trying to send Interactive Template Message Request, with document but unfortunately its missing from the InteractiveMessageParameter class.

public class InteractiveMessageParameter { [JsonProperty("type")] public string Type { get; set; }

    [JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
    public InteractiveMessageImage Image { get; set; }

    [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
    public string Text { get; set; }

    [JsonProperty("currency", NullValueHandling = NullValueHandling.Ignore)]
    public InteractiveMessageCurrency Currency { get; set; }

    [JsonProperty("date_time", NullValueHandling = NullValueHandling.Ignore)]
    public InteractiveMessageDateTime DateTime { get; set; }

    [JsonProperty("payload", NullValueHandling = NullValueHandling.Ignore)]
    public string Payload { get; set; }

 //this section is missing
    [JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
    public InteractiveMessageDocument Document { get; set; }
} 

     //this section is missing
 public class InteractiveMessageDocument
{
    [JsonProperty("id")]
    public string Id { get; set; }

    [JsonProperty("link")]
    public string Link { get; set; }

    [JsonProperty("filename")]
    public string FileName { get; set; }
}
gabrieldwight commented 4 months ago

Hi, I will add the missing class in the next update.

bashartaha commented 4 months ago

Thank you for the update, and I appreciate your help.

May I know when will be the next update?

gabrieldwight commented 4 months ago

Today