fix uploads by URL and fileId for UploadStickerConfig too, should be the same as in createNewStickerSet

bot-api-6.1
Denis Orlikhin 2018-12-06 14:32:25 +03:00
parent a0a678302e
commit 5d997a78c8
1 changed files with 3 additions and 1 deletions

View File

@ -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.