mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2025-03-28 18:53:52 +03:00
Added preview URL & width / height to attachments deserialized info
This commit is contained in:
commit
b9ec18dd7d
1 changed files with 7 additions and 4 deletions
11
v1/types.go
11
v1/types.go
|
@ -437,10 +437,13 @@ type (
|
|||
}
|
||||
|
||||
Attachment struct {
|
||||
ID uint64 `json:"id"`
|
||||
Mime string `json:"type"`
|
||||
Caption string `json:"caption"`
|
||||
Size uint64 `json:"size"`
|
||||
ID uint64 `json:"id"`
|
||||
Mime string `json:"type"`
|
||||
Caption string `json:"caption"`
|
||||
Size uint64 `json:"size"`
|
||||
PreviewURL *string `json:"preview_url,omitempty"`
|
||||
Height *uint64 `json:"height,omitempty"`
|
||||
Width *uint64 `json:"width,omitempty"`
|
||||
}
|
||||
|
||||
MessageProduct struct {
|
||||
|
|
Loading…
Add table
Reference in a new issue