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

This commit is contained in:
Denis Orlikhin 2018-12-06 14:32:25 +03:00
parent a0a678302e
commit 5d997a78c8

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.