feat: Added preview URL & width / height to attachments deserialized info

This commit is contained in:
Kirill Zaytsev 2022-02-25 13:44:55 +03:00
parent cf53df6f9f
commit 58791d23a2

View File

@ -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 {