Closed BlissoftCorp closed 1 month ago
When using the methods:
EditTemplateAsync or EditTemplate
It returns an exception of type "Invalid parameter".
Analyzing the source code I realize that the "object messageTemplate" parameter is never sent in the logic that has the EditTemplate methods. This is what the EditTemplateAsync code looks like
public async Task<BaseSuccessResponse> EditTemplateAsync(object messageTemplate, string templateId, CancellationToken cancellationToken = default(CancellationToken)) { string whatsAppBusinessEndpoint = WhatsAppBusinessRequestEndpoint.GetTemplateById.Replace("{{TEMPLATE_ID}}", templateId); return await WhatsAppBusinessPostAsync<BaseSuccessResponse>(whatsAppBusinessEndpoint, cancellationToken); }
It is obvious that it must be integrated in the following way:
public async Task<BaseSuccessResponse> EditTemplateAsync(object messageTemplate, string templateId, CancellationToken cancellationToken = default(CancellationToken)) { string whatsAppBusinessEndpoint = WhatsAppBusinessRequestEndpoint.GetTemplateById.Replace("{{TEMPLATE_ID}}", templateId); return await WhatsAppBusinessPostAsync<BaseSuccessResponse>(messageTemplate, whatsAppBusinessEndpoint, cancellationToken); }
I hope you can solve this soon, greetings.
hi, thanks for the fix. I have pushed the fix
When using the methods:
EditTemplateAsync or EditTemplate
It returns an exception of type "Invalid parameter".
Analyzing the source code I realize that the "object messageTemplate" parameter is never sent in the logic that has the EditTemplate methods. This is what the EditTemplateAsync code looks like
It is obvious that it must be integrated in the following way:
I hope you can solve this soon, greetings.