From 19384abc0643169e0d05af9e2ffc3eacc541a2e8 Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Fri, 16 Nov 2018 16:09:34 +0300 Subject: [PATCH] improve WebhookData struct --- v1/types.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/v1/types.go b/v1/types.go index 7b3da2b..a31ac0a 100644 --- a/v1/types.go +++ b/v1/types.go @@ -293,14 +293,12 @@ type WebhookData struct { Bot *MessageDataBot `json:"bot,omitempty"` Product *MessageDataProduct `json:"product,omitempty"` Order *MessageDataOrder `json:"order,omitempty"` - Images *[]FileItem `json:"images,omitempty"` - Files *[]FileItem `json:"files,omitempty"` + Items *[]FileItem `json:"items,omitempty"` } // FileItem struct type FileItem struct { ID string `json:"id"` - Name string `json:"name"` Size int `json:"size"` Caption string `json:"caption"` }