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

add postback payload description in message

This commit is contained in:
Maria Tyschitskaya 2021-11-02 15:11:36 +03:00
parent 2c315dffcd
commit 3b5ffe2343
2 changed files with 20 additions and 13 deletions

View File

@ -130,12 +130,19 @@ type PostBack struct {
Recipient Recipient `json:"-"`
// Time is when the message was sent.
Time time.Time `json:"-"`
// PostBack ID
Payload string `json:"payload"`
// PostBack Payload
Payload PostBackPayload `json:"payload"`
// Optional referral info
Referral Referral `json:"referral"`
}
// PostBackPayload represents payload data in PostBack
type PostBackPayload struct {
Title string `json:"title"`
Payload string `json:"payload"`
Mid string `json:"mid"`
}
type AccountLinking struct {
// Sender is who the message was sent from.
Sender Sender `json:"-"`