1
0
Fork 0
mirror of synced 2025-04-04 21:53:37 +03:00

add postback payload description in message

This commit is contained in:
Maria Tyschitskaya 2021-11-02 12:43:52 +03:00
parent 15aebcb6d2
commit 9fa0b317c1
2 changed files with 13 additions and 13 deletions

View file

@ -138,9 +138,9 @@ type PostBack struct {
// PostBackPayload represents payload data in PostBack
type PostBackPayload struct {
Title string `json:"title"`
Title string `json:"title"`
Payload string `json:"payload"`
Mid string `json:"mid"`
Mid string `json:"mid"`
}
type AccountLinking struct {

View file

@ -117,20 +117,20 @@ type Payload struct {
URL string `json:"url,omitempty"`
Title string `json:"title,omitempty"`
// Coordinates is Lat/Long pair of location pin
Coordinates *Coordinates `json:"coordinates,omitempty"`
TemplateType string `json:"template_type,omitempty"`
Buttons []Button `json:"buttons,omitempty"`
Coordinates *Coordinates `json:"coordinates,omitempty"`
TemplateType string `json:"template_type,omitempty"`
Buttons []Button `json:"buttons,omitempty"`
}
type Button struct {
Type string `json:"type,omitempty"`
Title string `json:"title,omitempty"`
Payload string `json:"payload,omitempty"`
URL string `json:"url,omitempty"`
WebviewHeightRatio string `json:"webview_height_ratio,omitempty"`
MessengerExtensions bool `json:"messenger_extensions,omitempty"`
FallbackURL string `json:"fallback_url,omitempty"`
WebviewShareButton string `json:"webview_share_button,omitempty"`
Type string `json:"type,omitempty"`
Title string `json:"title,omitempty"`
Payload string `json:"payload,omitempty"`
URL string `json:"url,omitempty"`
WebviewHeightRatio string `json:"webview_height_ratio,omitempty"`
MessengerExtensions bool `json:"messenger_extensions,omitempty"`
FallbackURL string `json:"fallback_url,omitempty"`
WebviewShareButton string `json:"webview_share_button,omitempty"`
}
// Coordinates is a pair of latitude and longitude.