Merge pull request #38 from DmitryZagorulko/master
improve WebhookData struct
This commit is contained in:
commit
2647ea0460
@ -293,14 +293,12 @@ type WebhookData struct {
|
|||||||
Bot *MessageDataBot `json:"bot,omitempty"`
|
Bot *MessageDataBot `json:"bot,omitempty"`
|
||||||
Product *MessageDataProduct `json:"product,omitempty"`
|
Product *MessageDataProduct `json:"product,omitempty"`
|
||||||
Order *MessageDataOrder `json:"order,omitempty"`
|
Order *MessageDataOrder `json:"order,omitempty"`
|
||||||
Images *[]FileItem `json:"images,omitempty"`
|
Items *[]FileItem `json:"items,omitempty"`
|
||||||
Files *[]FileItem `json:"files,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FileItem struct
|
// FileItem struct
|
||||||
type FileItem struct {
|
type FileItem struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
|
||||||
Size int `json:"size"`
|
Size int `json:"size"`
|
||||||
Caption string `json:"caption"`
|
Caption string `json:"caption"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user