fix postback payload description in message
This commit is contained in:
parent
3c316fdc8f
commit
da8451cf85
11
message.go
11
message.go
@ -130,16 +130,13 @@ type PostBack struct {
|
|||||||
Recipient Recipient `json:"-"`
|
Recipient Recipient `json:"-"`
|
||||||
// Time is when the message was sent.
|
// Time is when the message was sent.
|
||||||
Time time.Time `json:"-"`
|
Time time.Time `json:"-"`
|
||||||
// PostBack Payload
|
// PostBack ID
|
||||||
Payload PostBackPayload `json:"payload"`
|
Payload string `json:"payload"`
|
||||||
// Optional referral info
|
// Optional referral info
|
||||||
Referral Referral `json:"referral"`
|
Referral Referral `json:"referral"`
|
||||||
}
|
// Title for the CTA that was clicked on
|
||||||
|
|
||||||
// PostBackPayload represents payload data in PostBack
|
|
||||||
type PostBackPayload struct {
|
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Payload string `json:"payload"`
|
// Message ID
|
||||||
Mid string `json:"mid"`
|
Mid string `json:"mid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user