1
0
mirror of synced 2024-11-25 14:26:09 +03:00

Add payload buttons description for receiving messages (#10)

This commit is contained in:
tishmaria90 2021-10-22 16:20:41 +03:00 committed by GitHub
parent ec6ddfd1cb
commit 2c315dffcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.