Skip to content

Commit

Permalink
fix: template message component body example type
Browse files Browse the repository at this point in the history
Signed-off-by: sarthakjdev <[email protected]>
  • Loading branch information
sarthakjdev committed Dec 2, 2024
1 parent d92e973 commit af52dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/manager/template_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/template_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

Expand Down

0 comments on commit af52dae

Please sign in to comment.