Skip to content

Commit 4a570e6

Browse files
committed
Adjust if block condition for URL buttons
1 parent 8e6d57d commit 4a570e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: handlers/meta/whatsapp/templates.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func GetTemplatePayload(templating MsgTemplating) *Template {
5252
if strings.HasPrefix(k, "button.") {
5353

5454
for _, p := range v {
55-
if p.Type == "url" || strings.HasPrefix(p.Value, "http") {
55+
if p.Type == "url" {
5656
component := &Component{Type: "button", Index: strings.TrimPrefix(k, "button."), SubType: "quick_reply"}
5757
component.Params = append(component.Params, &Param{Type: "text", Text: p.Value})
5858
template.Components = append(template.Components, component)

0 commit comments

Comments
 (0)