1
0
mirror of synced 2024-11-28 16:06:04 +03:00

improve WebhookData struct

This commit is contained in:
DmitryZagorulko 2018-11-16 16:09:34 +03:00
parent 0708b63ef2
commit 19384abc06

View File

@ -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"`
}