1
0
mirror of synced 2024-11-21 20:46:05 +03:00

Merge pull request #38 from DmitryZagorulko/master

improve WebhookData struct
This commit is contained in:
Alex Lushpai 2018-11-16 16:36:15 +03:00 committed by GitHub
commit 2647ea0460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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