From 58791d23a262d7782a3da19fe0131ec261e33f31 Mon Sep 17 00:00:00 2001 From: Kirill Zaytsev Date: Fri, 25 Feb 2022 13:44:55 +0300 Subject: [PATCH] feat: Added preview URL & width / height to attachments deserialized info --- v1/types.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/v1/types.go b/v1/types.go index 78290e4..2bef0f7 100644 --- a/v1/types.go +++ b/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 {