1
0
mirror of synced 2024-11-22 04:46:05 +03:00

fix postback payload description in message

This commit is contained in:
Maria Tyschitskaya 2021-11-02 16:39:36 +03:00
parent 3c316fdc8f
commit da8451cf85

View File

@ -130,16 +130,13 @@ type PostBack struct {
Recipient Recipient `json:"-"`
// Time is when the message was sent.
Time time.Time `json:"-"`
// PostBack Payload
Payload PostBackPayload `json:"payload"`
// PostBack ID
Payload string `json:"payload"`
// Optional referral info
Referral Referral `json:"referral"`
}
// PostBackPayload represents payload data in PostBack
type PostBackPayload struct {
// Title for the CTA that was clicked on
Title string `json:"title"`
Payload string `json:"payload"`
// Message ID
Mid string `json:"mid"`
}