From 5d997a78c879ebd88fc00ae423c28eec33dd3a89 Mon Sep 17 00:00:00 2001 From: Denis Orlikhin Date: Thu, 6 Dec 2018 14:32:25 +0300 Subject: [PATCH] fix uploads by URL and fileId for UploadStickerConfig too, should be the same as in createNewStickerSet --- configs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs.go b/configs.go index ee6074c..e97bdca 100644 --- a/configs.go +++ b/configs.go @@ -1327,7 +1327,9 @@ func (config UploadStickerConfig) getFile() interface{} { } func (config UploadStickerConfig) useExistingFile() bool { - return false + _, ok := config.PNGSticker.(string) + + return ok } // NewStickerSetConfig allows creating a new sticker set.