Describe the bug
When calling the CreateTemplateMessageAsync method, I receive an error WhatsappBusinessCloudAPIException: (#100) The parameter name is required.
Upon checking the code and implementation, I noticed that there is no body being sent in the request.
My call:
var templateData = new
{
name = "teste_nome_template_01",
category = "MARKETING",
allow_category_change = false,
language = "en_US",
components = new List<object>()
{
new
{
type = "BODY",
text = "Test",
parameters = new[]
{
new { type = "text", text = "test 01" }
}
},
new
{
type = "BUTTONS",
buttons= new List<object>()
{
new {
type = "PHONE_NUMBER",
text = "Call",
phone_number= "********************"
}
}
},
new
{
type = "FOOTER",
text = "footer template"
}
}
};
var results = await _whatsAppBusinessClient.CreateTemplateMessageAsync("********************", templateData);
I believe the issue might be due to calling the WhatsAppBusinessPostAsync method without passing the template parameter, which due to overload, ends up invoking the wrong method.
Describe the bug When calling the CreateTemplateMessageAsync method, I receive an error WhatsappBusinessCloudAPIException: (#100) The parameter name is required.
Upon checking the code and implementation, I noticed that there is no body being sent in the request.
My call:
I believe the issue might be due to calling the WhatsAppBusinessPostAsync method without passing the template parameter, which due to overload, ends up invoking the wrong method.