From a0a678302e8953531aa87a6a7e97a395c8954ada Mon Sep 17 00:00:00 2001 From: Denis Orlikhin Date: Wed, 28 Nov 2018 19:06:56 +0300 Subject: [PATCH] fix uploads by URL and fileId, 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 08a2609..ee6074c 100644 --- a/configs.go +++ b/configs.go @@ -1417,7 +1417,9 @@ func (config AddStickerConfig) getFile() interface{} { } func (config AddStickerConfig) useExistingFile() bool { - return false + _, ok := config.PNGSticker.(string) + + return ok } // SetStickerPositionConfig allows you to change the position of a sticker in a set.