From c324f327acdec88a24cb09d5da08a85c8dffb6b1 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Wed, 17 Apr 2019 15:06:56 +0300 Subject: WIP: upload images --- models.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'models.go') diff --git a/models.go b/models.go index f2f13ea..0afd8f0 100644 --- a/models.go +++ b/models.go @@ -482,10 +482,10 @@ type PhotoAttachment struct { type PhotoAttachmentPayload struct { // Unique identifier of this image - PhotoId int64 `json:"photo_id"` - Token string `json:"token"` + PhotoId *int64 `json:"photo_id,omitempty"` + Token *string `json:"token,omitempty"` // Image URL - Url string `json:"url"` + Url *string `json:"url,omitempty"` } type PhotoAttachmentRequest struct { -- cgit v1.2.3