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 5fbdc28634

View file

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