From ec1c699641d5409ef6476161a1d3c08a79379840 Mon Sep 17 00:00:00 2001 From: Maria Tyschitskaya Date: Thu, 21 Oct 2021 12:51:52 +0300 Subject: [PATCH] add payload buttons description for receiving messages --- receiving.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/receiving.go b/receiving.go index 8d7a0c8..3dbff29 100644 --- a/receiving.go +++ b/receiving.go @@ -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.