Skip to content

Commit

Permalink
Rename preview attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Apr 11, 2022
1 parent ed7597d commit c15c3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/whatsapp/whatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ var waIgnoreStatuses = map[string]bool{
type mtTextPayload struct {
To string `json:"to" validate:"required"`
Type string `json:"type" validate:"required"`
Preview_URL bool `json:"preview_url,omitempty"`
PreviewURL bool `json:"preview_url,omitempty"`
Text struct {
Body string `json:"body" validate:"required"`
} `json:"text"`
Expand Down Expand Up @@ -806,7 +806,7 @@ func buildPayloads(msg courier.Msg, h *handler) ([]interface{}, []*courier.Chann
payload = mtTextPayload{
To: msg.URN().Path(),
Type: "text",
Preview_URL: true,
PreviewURL: true,
}
} else {
payload = mtTextPayload{
Expand Down

0 comments on commit c15c3d6

Please sign in to comment.