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

add payload buttons description for receiving messages

This commit is contained in:
Maria Tyschitskaya 2021-10-21 12:51:52 +03:00
parent ec6ddfd1cb
commit ec1c699641

View file

@ -118,6 +118,19 @@ type Payload struct {
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"`
}
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"`
}
// Coordinates is a pair of latitude and longitude.