all repos — telegram-bot-api @ 5d997a78c879ebd88fc00ae423c28eec33dd3a89

Golang bindings for the Telegram Bot API

fix uploads by URL and fileId for UploadStickerConfig too, should be the same as in createNewStickerSet
Denis Orlikhin qbikk@ya.ru
Thu, 06 Dec 2018 14:32:25 +0300
commit

5d997a78c879ebd88fc00ae423c28eec33dd3a89

parent

a0a678302e8953531aa87a6a7e97a395c8954ada

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M configs.goconfigs.go

@@ -1327,7 +1327,9 @@ return config.PNGSticker

} func (config UploadStickerConfig) useExistingFile() bool { - return false + _, ok := config.PNGSticker.(string) + + return ok } // NewStickerSetConfig allows creating a new sticker set.