diff --git a/internal/manager/template_manager.go b/internal/manager/template_manager.go index 54869b2..61d076c 100644 --- a/internal/manager/template_manager.go +++ b/internal/manager/template_manager.go @@ -108,9 +108,9 @@ type TemplateMessageComponentButton struct { // TemplateMessageComponentExample represents an example component in a WhatsApp Business message template. type TemplateMessageComponentExample struct { - HeaderHandle []string `json:"header_handle,omitempty"` - HeaderText []string `json:"header_text,omitempty"` - BodyText []string `json:"body_text,omitempty"` + HeaderHandle []string `json:"header_handle,omitempty"` + HeaderText []string `json:"header_text,omitempty"` + BodyText [][]string `json:"body_text,omitempty"` } type TemplateMessageComponentButtonExample []string diff --git a/pkg/components/template_message.go b/pkg/components/template_message.go index d6b133d..c823fe7 100644 --- a/pkg/components/template_message.go +++ b/pkg/components/template_message.go @@ -103,7 +103,7 @@ type TemplateMessageBodyAndHeaderParameter struct { DateTime *TemplateMessageParameterDateTime `json:"date_time,omitempty"` // Date time of the template message parameter. Document *TemplateMessageParameterDocument `json:"document,omitempty"` // Document of the template message parameter. Image *TemplateMessageParameterImage `json:"image,omitempty"` // Image of the template message parameter. - Text *TemplateMessageParameterText `json:"text,omitempty"` // Text of the template message parameter. + Text *string `json:"text,omitempty"` // Text of the template message parameter. Video *TemplateMessageParameterVideo `json:"video,omitempty"` // Video of the template message parameter. }