Skip to content

Commit

Permalink
fix: template component button parameter example should be a array of…
Browse files Browse the repository at this point in the history
… strings

Signed-off-by: sarthakjdev <[email protected]>
  • Loading branch information
sarthakjdev committed Dec 13, 2024
1 parent 79b137c commit 23555bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/manager/template_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type TemplateMessageComponentButton struct {
Type TemplateMessageButtonType `json:"type,omitempty"`
Text string `json:"text,omitempty"`
PhoneNumber string `json:"phone_number,omitempty"` // required when Type = PHONE_NUMBER
Example string `json:"example,omitempty"` // required when Type = URL and button has a variable
Example []string `json:"example,omitempty"` // required when Type = URL and button has a variable
Url string `json:"url,omitempty"` // required when Type = URL
}

Expand Down

0 comments on commit 23555bc

Please sign in to comment.