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

pull/210/head
Denis Orlikhin 7 years ago
parent a0a678302e
commit 5d997a78c8
  1. 4
      configs.go

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