Skip to content

Commit

Permalink
Adding payload parameter in whatsapp templates (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhnewatiya-plivo authored Apr 18, 2024
1 parent 27ac4ef commit da8edd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [7.46.0](https://github.com/plivo/plivo-go/tree/v7.46.0) (2024-04-18)
**Feature - Support for dynamic button components when sending a templated WhatsApp message**
- Added new param `payload` in templates to support dynamic payload in templates

## [7.45.6](https://github.com/plivo/plivo-go/tree/v7.45.6) (2024-04-04)
**Feature - New params for GET and LIST Brand API**
- Added new param 'declined_reasons' for GET and LIST Brand API
Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "7.45.6"
const sdkVersion = "7.46.0"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
1 change: 1 addition & 0 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ type Parameter struct {
Type string `mapstructure:"type" json:"type" validate:"required"`
Text string `mapstructure:"text" json:"text,omitempty"`
Media string `mapstructure:"media" json:"media,omitempty"`
Payload string `mapstructure:"payload" json:"payload,omitempty"`
Currency *Currency `mapstructure:"currency" json:"currency,omitempty"`
DateTime *DateTime `mapstructure:"date_time" json:"date_time,omitempty"`
}
Expand Down

0 comments on commit da8edd9

Please sign in to comment.